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