[Android Pro] Service (startservice , bindservice , unbindservice, stopService)
2015-10-26 20:01
543 查看
1: startService -------stopService (this will call onDestroy)
2: bindService -------unbindService (this will call onDestroy)
3: startService---bindService----stopService (nothing happen, shoud call unbindService)
4: startService---bindService----unbundService --- stopService (this will call onDestroy)
5: startService---bindService----stopService-----unbindService (this will call onDestroy)
6: bindService---startService---stopService (nothing happen, shoud call unbindService)
7: bindService---startService---unbindService----stopService (this will call onDestroy)
7: bindService---startService----stopService---unbindService (this will call onDestroy)
2: bindService -------unbindService (this will call onDestroy)
3: startService---bindService----stopService (nothing happen, shoud call unbindService)
4: startService---bindService----unbundService --- stopService (this will call onDestroy)
5: startService---bindService----stopService-----unbindService (this will call onDestroy)
6: bindService---startService---stopService (nothing happen, shoud call unbindService)
7: bindService---startService---unbindService----stopService (this will call onDestroy)
7: bindService---startService----stopService---unbindService (this will call onDestroy)
相关文章推荐
- Android Studio导入PullToRefresh第三方控件(已验证可行)
- Android SD卡简单的文件读写操作
- Android 状态栏
- android 通过socket获取IP
- Android ADB 端口占用问题解决方案
- android中获取打气筒的几种方式
- android资源目录---assets与res/raw区别
- 【Android成长之路】最常用和最难用的控件——ListView的浅谈(提升ListView 的运行效率)
- Android JNI实现计算器demo
- Android JNI实现计算器demo
- Android JNI实现计算器demo
- Android ListView适配器BaseAdapter
- android部分目录分析
- Android开发手记(15) 拨打电话和收发短信
- Android 自定义字体
- android中的Bitmap
- Android实现崩溃统计(UncaughtExceptionHandler)
- Android应用清单文件:AndroidManifest.xml
- WIFI项目--Android Studio的.gitignore以及使用git提交拉取代码
- android短信接收处理和发送