startService與bindService混合使用對Service生命週期的影響

一、正常情況: (1)單獨使用startService(): onCreate()->onStartCommand()->Service running->onDestroy()->Service shut down (2)單獨使用bindService(): onCreate()->onBind()->Clients are bound to service->onUnbind()->onDes
相關文章
相關標籤/搜索