Clint Barbosa
Clint Barbosa

Reputation: 71

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 versa, the problem is, I want to know how to detect if that service is closed or exited.

Upvotes: 3

Views: 2337

Answers (1)

Dennis Winter
Dennis Winter

Reputation: 2037

The ActivityManager should be what you are looking for.

Upvotes: 1

Related Questions