您的位置:首页 > 移动开发 > Android开发

[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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: