Sandy
Sandy

Reputation: 11

How to use pid to kill process

I just want to know any other ways to kill process with pid

Thank You!

Upvotes: 1

Views: 283

Answers (1)

Sohail Zahid
Sohail Zahid

Reputation: 8149

try Like this.

 android.os.Process.killProcess(android.os.Process.myPid());
 System.exit(1);

Upvotes: 1

Related Questions