android--Service
来源:互联网 发布:js从小到大排序 编辑:程序博客网 时间:2024/05/21 10:58
出处:http://blog.csdn.net/ithomer/article/details/7364024
Service
不能自己运行只能后台运行,并且可以和其他组件进行交互。
Service的启动有两种方式:context.startService() 和 context.bindService()
context.startService() 启动流程:
context.startService() -> onCreate() -> onStart() -> Service running -> context.stopService() -> onDestroy() -> Service stop
context.bindService()启动流程:
context.bindService() -> onCreate() -> onBind() -> Service running -> onUnbind() -> onDestroy() -> Service stop
0 0
- [android]service中再启service
- android service
- Android Service
- android service
- Android Service
- Android service
- android service
- Android Service
- Android Service
- Android service
- Android:Service
- Android Service
- [Android] Service
- android service
- android service
- android service
- android service
- Android Service
- 对STL做下小结
- 想学编程?这样开始
- Git 常用命令
- C++笔试面试总结
- VPN代理介绍
- android--Service
- goagent上网教程
- C++ Primer Plus第六版 第三章 编程练习答案
- 2、渲染框架之核心类
- [LeetCode]Length of Last word
- hibenate.hbm2ddl.auto属性详解
- 匿名网络tor介绍
- jsp大小写,java获取url,国际化
- [Leetcode]Valid Sudoku