Code example for FragmentActivity

Methods: getSystemService, onCreate

0
	public static final String PARAM_EXCEPTION = "EXCEPTION";
 
 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
		notificationManager.cancelAll();
	} 
 
	@Override 
	protected void onResumeFragments() { 
		super.onResumeFragments(); 
 
		// play with fragments here 
		showErrorDialog(); 
	} 
 
	protected void showErrorDialog () { 
		final int resTitleId = getIntent().getIntExtra(PARAM_RESOURCE_TITLE, 0);