1

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:

ActivityManager

Android: Killing (all) Foreground running App

Community
  • 1
  • 1
Juampa
  • 2,035
  • 2
  • 25
  • 35

0 Answers0