Android -Starting Service at Boot Time

后端 未结 9 1764
一个人的身影
一个人的身影 2020-11-22 16:12

I need to start a service at boot time. I searched a lot. They are talking about Broadcastreceiver. As I am new to android development, I didn\'t get a clear picture about s

9条回答
  •  梦谈多话
    2020-11-22 16:37

    Create a BroadcastReceiver and register it to receive ACTION_BOOT_COMPLETED. You also need RECEIVE_BOOT_COMPLETED permission.

    Read: Listening For and Broadcasting Global Messages, and Setting Alarms

提交回复
热议问题