正在加载图片...
Component calls 7.1 Service简介 startService() ·后动方式 onCreate() 口通过调用Context..startService(0后动 Service,通过调用Context..stopService() 或Service.stopSelf)停止Service。因此 onStartCommand( Service一定是由其它的组件启动的 ,但停止过程可以通过其它组件或自 身完成 Service is running Active 口在后动方式中,启动Service的组件不 Lifetime 能够获取到Servicel的对象实例,因此 无法调用Service中的任何函数,也不 The service is stopped by itself or a client 能够获取到Service中的任何状态和数 据信息 口 能够以启动方式使用的Service,需要 具备自管理的能力,而且不需要从通 onDestroy() 过函数调用获取Service的功能和数据 Service is shut down Unbounded 7.1 Service简介 n 启动方式 q 通过调用Context.startService()启动 Service,通过调用Context.stopService() 或Service.stopSelf()停止Service。因此 ,Service一定是由其它的组件启动的 ,但停止过程可以通过其它组件或自 身完成 q 在启动方式中,启动Service的组件不 能够获取到Service的对象实例,因此 无法调用Service中的任何函数,也不 能够获取到Service中的任何状态和数 据信息 q 能够以启动方式使用的Service,需要 具备自管理的能力,而且不需要从通 过函数调用获取Service的功能和数据
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有