Open wrote:
> Can someone get me started on how to set a repeating alarm so that it
> fires at a specific time on a specific day of the week.  For example,
> I would like an alarm to trigger an intent every Monday at 8am.
> 
> Looks like a lot of apps do this (e.g., Locale, Alarm Clock, etc.)

Step #1: Figure out the time you want the alarm to next be fired, in
milliseconds since the epoch (i.e., System.currentTimeMillis() timebase)

Step #2: Figure out the period in between the alarms in milliseconds

Step #3: Use AlarmManager to register a RTC or RTC_WAKEUP alarm that
will issue a PendingIntent using those two values

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 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

Reply via email to