I am using services in android app.Services gets stopped when we switch off the device. We can start it using boot time start up broadcast receiver. That I know.
I want service to be designed in such a way that its cycle should not get stopped once it is started. I am using alarm manager to start the services and Alarm Manager gives repeatable call to services fro every one day.
In simple words.. If I have set repeat time 2 days. It should call service after tow day only, no matter how much time I switch off my device.
You can ask for more details. I ll provide code snippet too.