Thanks Mark, I didnt realise that they need re-esablishing so that's good to know.
I'm concerned whether the alarms can be removed individually, as in the SDK it appears that they are removed by calling remove and passing in an Intent, which suggests, if one alarm is removed, they all are and therefore would all need to be re-established. On Jan 15, 3:50 pm, Mark Murphy <[email protected]> wrote: > JimmyHoffa wrote: > > Hi All, > > > I'm new to using the alarm manager and was wondering if the following > > is possible.. > > > I am creating a Android 2 Application which uses a database to store > > 'appointments' , date/who/reason etc.. > > > What I want to do when viewing an appointment is to allow the user to > > select "Remind Me " + Spinner allowing selection of 1 hour, 1 day > > etc... "before appointment". Then when the appointment is saved, I > > setup an alarm intent which fires off a notification remind the user. > > > I think that is pretty straightforward to do, but where I'm confused > > is when the user is viewing the appointment, if an alarm is already > > set I want to show that there is already an alarm set and allow it to > > be modified or removed. > > > Any help here greatly appreciated, > > You'll need to track that yourself in your database, for two reasons: > > 1. To provide the UI that you describe above > > 2. To handle the case where the phone is rebooted, since AlarmManager > alarms do not persist past a reboot > > Reason #2 typically requires you to implement a boot-time > BroadcastReceiver, so you can get control and re-establish your alarms > from your database. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ > Version 1.3 Available!
-- 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

