android ApiDemo学习(一)service——6 Remote Service Controller
来源:互联网 发布:程序员加薪申请 编辑:程序博客网 时间:2024/06/05 11:50
可参考:http://blog.csdn.net/mapdigit/article/details/7711561
与local service controller一样,remote service controller使用start模式,而不是bind模式
使用startService启动服务,使用stopService停止服务。参数都是intent。
注意:
1 在remote service controller中点击start 之后,返回,服务并没有停止。此时再点击remote service binding,显示的计数就不是从1开始了。原因是这两个进程连接的是同一个service。controller启动service后,service中的service已经开始计数了。
2 在controller中点击start,service调用onCreate;返回,在binding中点击bind,service调用onBind;binding中点击onbind,service不会死掉;controller中点击stop,service才会onDestroy。
- android ApiDemo学习(一)service——6 Remote Service Controller
- android ApiDemo学习(一)service——5 Remote Service Binding
- android ApiDemo学习(一)service——1 Foreground Service Controller
- android ApiDemo学习(一)service——3 Local Service controller
- android ApiDemo学习(一)service总结
- Android ApiDemo学习(二)notification——2 Notifying Service Controller
- android ApiDemo学习(一)service——2 Local Service Binding
- android ApiDemo学习(一)service——4 Messenger Service
- APIDemo Service(一)
- Android ApiDemos示例解析(43):App->Service->Remote Service Controller
- Android 学习笔记 Service (二) Remote Service Sample
- APIDemo Service(二)
- APIDemo Service(三)
- Android 实战 (一) Remote Service,Thread,Handler,Broadcast
- android service 学习 (一)
- Android Remote Service
- android remote service
- Android remote service
- 关于Bos 开发中使用字段类型是选择已有基础资料的的源代码
- Remedy Java API 建单
- poj 2629 Common permutation
- 实现多线程下载的代码
- 紧急状况不犯愁,上班族司机必备的六款实用App
- android ApiDemo学习(一)service——6 Remote Service Controller
- java进行xls转xml
- Git学习笔记(八) Git基本操作
- "Format" did not complete normally。MyEclipse手动格式化web.xml文件错误
- java面试笔试题总结
- gloox 连接 openfire 使用笔记 --openfire 配置
- Remedy表单样式修改之我见
- ZT 一生用10亿元也买不来的经商经验
- 大话san和nas