Code example for FragmentActivity

Methods: getIntent

0
 
	@SuppressWarnings("unchecked") 
	private void setupState(Bundle savedInstanceState) {
		if (savedInstanceState != null) return;
 
		Intent intent = getIntent();
		if (intent.hasExtra(EXTRA_WRAPPERS)) {
			photos = (ArrayList<PhotoWrapper>) intent.getExtras().getSerializable(EXTRA_WRAPPERS);
		} 
		if (intent.hasExtra(EXTRA_TITLE)) {
			artTitle = intent.getExtras().getString(EXTRA_TITLE);
		} 
 
		getSupportFragmentManager() 
				.beginTransaction() 
				.replace(android.R.id.content,
						new GalleryFragment(photos, artTitle, intent.getExtras().getBoolean(EXTRA_IS_EDIT_MODE, false)))
				.commit(); 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java