I'm not sure I understand -- you are asking to set an alarm if the application is not running? You can't. You need to have some piece of your application running, so it can call on to the AlarmManager to set the alarm. After that, you don't need to run any more if you are delivering the alarm to an IntentReceiver declared in your manifest -- when the alarm goes off it will launch your app to deliver the alarm.
To deal with system restarts, you can register for the BOOT_COMPLETED broadcast, which is sent when the system finishes booting in to the home screen. On Mar 30, 2:22 am, Jackkk <[EMAIL PROTECTED]> wrote: > Hi! > > What is the best and reccommended scenario for creating a timed alarm > in the system if the main activity is not working? > > What I want to do is to launch an alarm on a certain moment without > placing a background service? For example, how to place a notification > exactly at 9:15 AM even if my app hasn't been started before or the > system has been restarted between setting the alarm and current time. > > If anybody could give me a small hint as I'm a little stuck here with > this issue! > > Thanks in advance > > Jack --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

