List of usage examples for android.app Activity getTaskId
public int getTaskId()
From source file:Main.java
public static void blockRecentApps(Activity activity) { ActivityManager activityManager = (ActivityManager) activity.getApplicationContext() .getSystemService(Context.ACTIVITY_SERVICE); activityManager.moveTaskToFront(activity.getTaskId(), 0); }
From source file:Main.java
public static void disableRecentAppsClick(Activity activity) { ActivityManager activityManager = (ActivityManager) activity.getApplicationContext() .getSystemService(Context.ACTIVITY_SERVICE); activityManager.moveTaskToFront(activity.getTaskId(), 0); }