简体   繁体   中英

Android BOOT_COMPLETED

I have a question concerning the BOOT_COMPLETED event. I need a service to be running at all time (done via AlarmManager) but I wonder if I have to start the service manually the first time the application is installed as the BOOT_COMPLETED event is sent only after the device is restarted. How is this commonly handled, it seems like no one is having this problem, am I getting something wrong here?

用户应该是决定服务在首次安装时是否正在运行的人,而不是您,因此是的,应该在他们首次启动该应用程序时手动启动该服务

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM