ExampleApp/src/com/altinn/apps/fisher/ui/screen/BaseActivity.java
/**
	 * Utility method to starts an activity
	 * @param activityClass
	 * @param bundle
	 */
Utility method to starts an activity
@param activityClass
@param bundle
Utility method to starts an activity @param activityClass @param bundle
public void startActivity(Class activityClass, Bundle bundle){		
			if(!(this instanceof HomeActivity)){
				finish();
			}
			Intent intent = new Intent(this,activityClass);
			intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
			if(bundle != null){
				intent.putExtras(bundle);
			}
			startActivity(intent);
	}
public void startActivity ( Class activityClass , Bundle bundle ) { if ( ! ( this instanceof HomeActivity ) ) { finish ( ) ; } Intent intent = new Intent ( this , activityClass ) ; intent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; if ( bundle != null ) { intent . putExtras ( bundle ) ; } startActivity ( intent ) ; }
Utility method to starts an activity
 @param activityClass
 @param bundle
Utility method to starts an activity @param activityClass @param bundle