Service

onCreate: 首次創建服務時調用 onStartCommand: startService時調用 onBind: bindService時調用 onUnbind: unbindService時調用 onRebind: 重寫綁定,並且onUnbind返回true時調用 生命週期調用 bindService時,根據傳入Intent的type判斷是否調用onBind,相同的type只執行一次onB
相關文章
相關標籤/搜索