killBackgroundProcesses does not work on SETTINGS?
- by Anthony
I want to kill the background process of SETTINGS by using killBackgroundProcesses. But it does not work without any errors? I use API(8) level 2.2 and having KILL_BACKGROUND_PROCESSES permission in manifest.
ActivityManager activityManager = (ActivityManager)getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE);
activityManager.killBackgroundProcesses("com.android.settings");
"com.android.settings" is checked by getPackageName of getRunningTasks in ActivityManager.