Update your AndroidManifest.xml to include the following two permission: android.permission.GET_TASKS