killBackgroundProcesses does not work on SETTINGS?
Posted
by
Anthony
on Stack Overflow
See other posts from Stack Overflow
or by Anthony
Published on 2012-09-07T03:35:25Z
Indexed on
2012/09/07
3:37 UTC
Read the original article
Hit count: 404
android
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.
© Stack Overflow or respective owner