开发者

How to detect if an application has been closed / exited

开发者 https://www.devze.com 2023-02-09 23:22 出处:网络
I have 2 service running in background.. if Service 1 is closed, Service 2 will start up Service 1 again, and vice ve开发者_运维问答rsa,

I have 2 service running in background.. if Service 1 is closed, Service 2 will start up Service 1 again, and vice ve开发者_运维问答rsa, the problem is, I want to know how to detect if that service is closed or exited.


The ActivityManager should be what you are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消