• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

AlarmManager clearing alarms after restart

 
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.
 
Author
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
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic