Android:Service生命週期最全面解析

參考:https://blog.csdn.net/carson_ho/article/details/53160137
特別注意
startService()和stopService()只能開啓和關閉Service,無法操作Service;
bindService()和unbindService()可以操作Service

startService開啓的Service,調用者退出後Service仍然存在;
BindService開啓的Service,調用者退出後,Service隨着調用者銷燬。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章