Thursday, April 21, 2011

[android-developers] Re: AlarmManager woes

> Store a SharedPreference value that indicates the time you last set the
> alarm for, defaulting to 0.

How would that work?

If the alarm is killed by the system for whatever reason, how would
the preference let me know if I need to restart the alarm or not?

I think the only way to do this reliably is NOT to use repeating
alarms, but just to use one-shot alarms.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate