How do I check if a background service (on Android) is running?
I want an Android activity that toggles the state of the service -- it lets me turn it on if it is off and off if it is on.
转载于:https://stackoverflow.com/questions/600207/how-to-check-if-a-service-is-running-on-android