What does cal.getTimeInMillis() in the following statement return? Maybe the problem is there. alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pendingIntent);
I use the following statement while setting alarms: this.am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime()+tOffset, pendingIntent); where SystemClock.elapsedRealtime() is the elapsed time in milliseconds since the system was booted, including deep sleep. "tOffset" is the milliseconds which should elapse before the alarm is fired. ------------------------------------------------- Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en