Code example for FragmentActivity

Methods: getSupportFragmentManager, onNewIntent

0
		registerReciever(); 
	} 
 
	@Override 
	protected void onNewIntent(Intent intent) {
		super.onNewIntent(intent);
		item = (Story) intent.getSerializableExtra(Story.class.getSimpleName());
 
		Fragment fragment = null;
		try { 
			fragment = DetailedFragment.class.newInstance();
		} catch (InstantiationException e) {
			Log.d(TAG, "", e);
		} catch (IllegalAccessException e) {
			Log.d(TAG, "", e);
		} 
 
		if (fragment != null) {
			getSupportFragmentManager().beginTransaction() 
					.replace(android.R.id.content, fragment).commit();
		} 
 
	}