Thursday, January 26, 2012

Re: [android-developers] Re: AlarmManager does not fire?

Ah,  so your alarm receiver is an inner class within the activity?

The name in the manifest is wrong then, and the receiver isn't found when the alarm fires.

27.01.2012 11:08 пользователь "Rudolf Polzer" <rudolf.polzer@i-r-p.de> написал:
"adb shell dumpsys alarm" tells the following about my alarm:

irp.plan
   17ms running, 1 wakeups
   1 alarms: flg=0x4 cmp=irp.plan/.PlanActivity$OnAlarmReceiver

which is not present after a call of
am.cancel(pi);

So I guess that the setting of the alarm works, but the broadcast
message does not arrive.
The missing intent-filter is the same as in the example software
cw-advandroid / SystemServices / Alarm / AndroidManifest.xml

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

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

No comments:

Post a Comment