Android Question kill my application from another my application on rooted device

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

I have 2 application on same device. One of them work as watchdog and check some situations. One of the situation i need kill my main application from watchdog application.

My device is rooted. I saw some shell command code but unfortunately i didn't succeed.

is there any shell command like i wrote my package name and kill.?

thank you.
 

udg

Expert
Licensed User
Longtime User
I would consider the use of Intents as a way to inter-communication between your apps (which should work with non-rooted devices too).

Have a look here and here for a good starting point.

Basically, the idea is that your watchdog app sends an intent to your main app telling it to kill itself.

udg
 
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

problem is my main application is paused that situation. I can't run code kill itself.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…