Code example for ActivityManager

Methods: getRunningAppProcessesgetRunningTasks