Android BOOT_COMPLETED

362 Views Asked by At

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?

1

There are 1 best solutions below

2
On BEST ANSWER

the user should be the one deciding on if the service is running or not when its first installed and not you, so yes it should be started manually when they launch the app for the first time