How do I find out what background services are running on my Android?

How do I find out what background services are running on my Android?
Answer
The proper way to check if a service is running is to simply ask it.
Implement a BroadcastReceiver in your service that responds to pings from your activities. Register the BroadcastReceiver when the service starts, and unregister it when the service is destroyed.
 

Tìm kiếm

Back
Top