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