给你一段android官方文档的描述: A started service is one that another component starts by calling startService(), resulting in a call to the service's onStartCommand() method.When a service is started, it has a lifecycle that's independent of the component that started it and the service can run in the background indefinitely, even if the component that started it is destroyed. As such, the service should stop itself when its job is done by calling stopSelf(), or another component can stop it by calling stopService().
不行的吧
AndroidManifest.xml 里
<service android:name=".xxxxxxx" android:process=":xxxxxxx" />
A started service is one that another component starts by calling startService(), resulting in a call to the service's onStartCommand() method.When a service is started, it has a lifecycle that's independent of the component that started it and the service can run in the background indefinitely, even if the component that started it is destroyed. As such, the service should stop itself when its job is done by calling stopSelf(), or another component can stop it by calling stopService().
现在应该明白了吧
你要调用的是什么service?