You sure they're not killing your service with a task killer? On Sun, Aug 15, 2010 at 11:31 AM, Pent <[email protected]> wrote: > Users are giving me logs showing alarm manager alarms just not going > off across many devices and OS versions. > > I log any calls to the alarm manager. They seem to just disappear into > a black hole sometimes. I usually have them chained. One goes off, I > do a check, then set another (usually a few hours). They're set by a > service. > > Intent ai = new Intent( this, ReceiverStaticInternal.class ); > ai.setAction( Keys.ActionCodes.ACTION_ALARM ); > > alarmPendingIntent = PendingIntent.getBroadcast( > this, > 0, > ai, > PendingIntent.FLAG_CANCEL_CURRENT > ); > alarmLastTime = ....some time in the future... > > alarmManager.set( AlarmManager.RTC_WAKEUP, alarmLastTime, > alarmPendingIntent ); > > I'm checking for alarmLastTime being in the past. > > Anyone else ? Any ideas ? > > Pent
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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

