BTW, setting a new alarm with the same pending intent replaces any existing alarm that used that intent.
"Same" has a well defined meaning here, look it up under PendingIntent. It does not have to be the same Java object reference. So if you are looking to update an existing alarm (with a new interval,perhaps), there is already a way to do this without querying for existing alarms. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 19.12.2010 1:54 пользователь "Dianne Hackborn" <[email protected]> написал: > We will not be persisting alarms. > > On Sat, Dec 18, 2010 at 2:49 PM, Sari AlHiari <[email protected]> wrote: > >> Thanks Mark >> >> You're right. I will need to keep track of toss info. >> >> Sounds likea good potential enhancement area for the apis. To persist >> alarms and allow user to query them. >> >> I appreciate the help. >> >> On Dec 18, 1:13 pm, Mark Murphy <[email protected]> wrote: >> > There is no such API, unfortunately. You will need to keep track of >> > that information yourself. You probably needed to do that anyway, >> > since the alarms are cleared on reboot, so you probably need that >> > information in order to re-establish the alarms at that point. >> > >> > On Sat, Dec 18, 2010 at 5:57 AM, Sari AlHiari <[email protected]> >> wrote: >> > > Hello, >> > >> > > I want my app to be able to query the Alarm service to see if there is >> > > a previous Alarm already set for this app, and if not to set one. >> > >> > > I could not find any api to get a list of set alarms or a specific >> > > alarm for that matter. >> > >> > > Can anyone help? >> > >> > > I Appreciate any assistance. >> > >> > > -- >> > > 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]<android-developers%[email protected]> <android-developers%[email protected]<android-developers%[email protected]> > >> > > For more options, visit this group at >> > >http://groups.google.com/group/android-developers?hl=en >> > >> > -- >> > Mark Murphy (a Commons Guy)http://commonsware.com| >> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy >> > >> > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 >> > 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]<android-developers%[email protected]> <android-developers%[email protected]<android-developers%[email protected]> > >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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

