首页 > 移动平台 > 详细

[Android Pro] Service (startservice , bindservice , unbindservice, stopService)

时间:2015-10-26 20:34:48      阅读:425      评论:0      收藏:0      [点我收藏+]

 

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)

[Android Pro] Service (startservice , bindservice , unbindservice, stopService)

原文:http://www.cnblogs.com/0616--ataozhijia/p/4912216.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!