Skip to content

Instantly share code, notes, and snippets.

@SyncHack
Created April 16, 2012 14:14
Show Gist options
  • Save SyncHack/2399088 to your computer and use it in GitHub Desktop.
Save SyncHack/2399088 to your computer and use it in GitHub Desktop.
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
List<ActivityManager.RunningTaskInfo> tasks = am.getRunningTasks(5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment