Service

生命周期方法具体介绍 主要介绍内部调用方法和外部调用方法的关系。 1.1 startService() 作用:启动Service服务 手动调用startService()后,自动调用内部方法:onCreate()、onStartCommand() 调用逻辑如下:  1.2 stopService() 作用:关闭Service服务 手动调用stopService()后,自动调用内部方法:onDest
相关文章
相关标签/搜索