标签: android android-service
可能重复: android: check if a service is running
我有一个提供通知的服务。如果用户离开应用程序并返回,我想在服务运行时切换按钮。 如何检查服务是否正在运行?