阅读背景:

安卓核心技术中级——Service

来源:互联网 
四个方法: onStartCommand()

The system calls this method when another component, such as an activity, requests that the service be started, by calling startService(). Once this method executes, the service is started and can run in the background indefinitely. If you implement this, it is your responsibility to stop the service when its work is done, by calling stopSelf() or stopService(). (If you only want to provide binding, you don't need to implement this method.)The system calls this meth




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: