How to detect if an application has been closed / exited
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.
精彩评论