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

  1. 云栖社区>
  2. 博客>
  3. 正文

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

最美的回忆 2017-06-01 13:28:00 浏览625
展开阅读全文

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
本文转自demoblog博客园博客,原文链接http://www.cnblogs.com/0616--ataozhijia/p/4912216.html如需转载请自行联系原作者

demoblog

网友评论

登录后评论
0/500
评论