2

I'm developing an android app which will display list of all the installed app in mobile.

I'm already listed all the app which are installed in my phone, and trying to stop a app from list.

I want to stop a app from list by one click. Without Root

Thanks in advance.

Victory
  • 1,184
  • 2
  • 11
  • 30

1 Answers1

-2

You can only kill your own apps, for example, the apps which are running in the same process or with the same userID. You can not kill others, unless the device is rooted.

Look at this answer to know about killing background processes of app.

  • I want to stop app not process. – Victory Oct 18 '19 at 07:02
  • sure, you can kill background processes of other apps as well. The other apps will automatically be stoped once you killed their processes. Have a look at the documentation of killBackgroundProcesses(): https://developer.android.com/reference/android/app/ActivityManager.html#killBackgroundProcesses(java.lang.String) . You can use this from API level 8 and up – AliHamzaIub13 Oct 18 '19 at 07:09