問題詳情

47. Service 是 Android 的應用程式元件之一,適合用來執行需使用較長時間且不與使用者互動的作業。附圖程式片段是一個基本的 Service 應用程式元件,假設在 launcher activity 執行 startService()方法後可以正常啟動此 Service,則程式片段中的空白處應依序填入何者?
5fc59dab72981.jpg
(A) android.app.Service、onStartService
(B) android.app.WorkerThread、onStartCommand
(C) android.app.Service、onStartCommand
(D) android.content.Service、onInitService



參考答案

答案:C
難度:計算中-1
書單:沒有書單,新增

內容推薦

內容推薦