Alarms are a bit of a pain. You have to set them again on boot and
handle time changes and stuff like that.

If you only need to reset the value when it is accessed, just always
store the date it was last reset. When accessing it, if 2AM on the
latest Saturday is later than the last time it was reset, reset it.

On Nov 16, 10:55 pm, drewin <[email protected]> wrote:
> I want to reset a counter every week in an app that I'm writing at 2
> am every Saturday. I've read that a Handler, not a Timer, should be
> used for updating a UI on a time, but is this also true for weekly
> events? I hope my question is clear...

-- 
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

Reply via email to