I want to implement a button that kills all running apps and associated processes myself, but I cannot make it to work with some installed apps.
I tried
activityManager.restartPackage( packageName );
activityManager.killBackgroundProcesses( packageName ); (Which is the new version of restartPackage)
android.os.Process.killProcess( pid );
My issue is that some apps don't get killed and when a refresh the list of running apps, they still there.
I've read: