How to determine if an application has been closed / closed

I have 2 services running in the background. If Service 1closed, Service 2it starts up again Service 1and vice versa, the problem is that I want to know how to determine if this service is closed or quit.

+3
source share
1 answer

ActivityManager should be what you are looking for.

+1
source

Source: https://habr.com/ru/post/1790891/


All Articles