Code example for Fragment

Methods: getArgumentsonStart

0
				false); 
	} 
 
	@Override 
	public void onStart() { 
		super.onStart(); 
 
		Log.v(TAG, "OnStart");
 
		// During startup, check if there are arguments passed to the fragment. 
		// onStart is a good place to do this because the layout has already 
		// been 
		// applied to the fragment at this point so we can safely call the 
		// method 
		// below that sets the article text. 
		Bundle args = getArguments();
		if (args != null) {
			// Set article based on argument passed in 
			updateCardView(args.getString(CARD_WEB_VIEW_KEY));
		} else if (cardWebView.isEmpty()) {
			// Set article based on saved instance state defined during 
Contextual code suggestions in your IDE  Get Codota for Java