This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Android services and Start it on boot up  RSS feed

Hardik Trivedi
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!