码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-10-26 20:37:48      阅读:258      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!