Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AlarmManager clearing alarms after restart

 
yash wardhan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to android and I am trying to create an application in which I have to use an alarm.
I am able to set the alarm, but when the emulator is restarted all the alarms set are cleared as given in API docs of AlarmManager. Is there any way to set those alarms on device startup etc.
Can anyone tell me how to do that?
I thought of creating a background service but I am not finding any tutorial for this.

Need help to start working on android.


Thanks in advance.
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to set those alarms on device startup etc.


Sure. Register to be given control on boot.

http://androidguys.com/?p=4411
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic