I start an android service manually which does some data collection work.
Suppose if there is interruption caused by reboot then the service ends there.I need to restart the same service on reboot.
note:I am not starting the service on boot.
Thanks in advance.
You can restart service after boot interruption.
Just store flag in shared pref which is boolean set to true if boot interrupted.
Now when boot completes you can use the following code to restart your service.
Add following snippet to your manifest
Cheers….