List of usage examples for android.app Activity finish
public void finish()
From source file:Main.java
public static void finishActivityAnim(Activity activity, int exitAnim) { activity.finish(); activity.overridePendingTransition(0, exitAnim); }
From source file:Main.java
public static void restartActivity(Activity activity) { activity.finish(); activity.startActivity(activity.getIntent()); }
From source file:Main.java
public static void back(Context old, Intent intent) { Activity activity = (Activity) old; activity.finish(); activity.setResult(Activity.RESULT_OK, intent); }
From source file:Main.java
public static void finishCurrentActivity() { Activity activity = activityStack.pop(); activity.finish(); }
From source file:Main.java
public static void exitApp() { for (Activity activity : activities) { activity.finish(); }/*from ww w . jav a 2s . co m*/ System.exit(0); }
From source file:Main.java
public static void exitApplication() { if (null == activitys && 0 == activitys.size()) { return;//from w ww.ja v a 2 s .c om } for (Activity a : activitys) { a.finish(); } }
From source file:Main.java
public static void removeAllActivity() { if (mActivityStack != null && mActivityStack.size() > 0) { for (Activity activity : mActivityStack) { activity.finish(); }//from w ww . ja va2 s . co m } }
From source file:Main.java
public static void killAllActivity() { if (activityList.size() > 0) { for (Activity activity : activityList) { activity.finish(); }/*ww w .ja va2s . c o m*/ } }
From source file:Main.java
/** * Reload activity//from w w w.j a v a 2 s . co m * * @param activity Activity to be reloaded */ public static void reloadActivity(Activity activity) { // reload activity activity.finish(); activity.startActivity(activity.getIntent()); }
From source file:Main.java
public static void finishProgram() { for (Activity activity : activityList) { activity.finish(); }/*from w w w.j av a 2s . c o m*/ android.os.Process.killProcess(android.os.Process.myPid()); }