Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Android services and Start it on boot up  RSS feed

Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

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.

Please help.I will be thankful to you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!