The moose likes Android and the fly likes Android services and Start it on boot up Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Android services and Start it on boot up" Watch "Android services and Start it on boot up" New topic
Author

Android services and Start it on boot up

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
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.
 
 
subject: Android services and Start it on boot up
 
Threads others viewed
AlarmManager clearing alarms after restart
Running background Services on a schedule
Burglar Alarm Simulation System
Start activity in broadcast receiver
Using JBoss Native with a vertical cluster
IntelliJ Java IDE