[android-developers] Setting alarm time
Hi,
I need to set an alarm clock for, say, 9AM
so I am getting a calendar instance
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
cal.set(2010, 11, 29, 9, 0, 0);
and then I call AlarmManager.set like:
mAlarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTime().getTime(),
pi);
where pi is a pending intent for a broadcast message.
I do not receive a callback at the specified time.
How do I correct this?
Cheers,
Earlence
--
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