【Android】Service知識點

啓動方式 1、startService()啓動 該方式啓動的service可無限期運行下去,需調用stopSelf()或調用stopService()停止。當系統資源不足時,Android系統也可能結束服務。 2、bindService()啓動: 該方法啓動時,客戶可通過IBinder接口與service進行通信,可通過unbindService()關閉連接。一個service可以同時與多個調用者
相關文章
相關標籤/搜索