Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force-stop the application programatically-Android

Tags:

android

I want to force-stop an application from my android app, (Instead of doing manually by Man apps->force-stop). How to achieve this.

like image 994
user470169 Avatar asked Aug 18 '26 21:08

user470169


1 Answers

Process.killProcess(Process.myPid());
like image 63
Zielony Avatar answered Aug 21 '26 12:08

Zielony



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!