I need my app to start a service. I have read many questions including this one (see Answer 1): Trying to start a service on boot on Android
I am pretty happy with Answer 1 but have a question regarding the RECEIVE_BOOT_COMPLETED
. Will this only be triggered after the boot, or will it also be triggered (or emulated) when the user installs or first-time starts the app, or do I have to make sure for myself that the service is started the first time via another method, as the device did not technically boot up and technically should not send the BOOT_COMPLETED
message.