当通过startService( )方法启动服务时,执行的生命周期方法为onCreate( )、onStartCommand( ),然后服务处于运行状态,直到自身调用stopSelf( )方法或者其他组件调用stopService( )方法时服务停止,最终被系统销毁。
2023-04-20
当通过startService( )方法启动服务时,执行的生命周期方法为onCreate( )、onStartCommand( ),然后服务处于运行状态,直到自身调用stopSelf( )方法或者其他组件调用stopService( )方法时服务停止,最终被系统销毁。
为您查询到如下内容:
为您查询到如下内容:
A、 错 误
B、 正 确
参考答案: 正 确
热门标签