[android-developers] PendingIntent getBroadcast Can't use FLAG_RECEIVER_BOOT_UPGRADE here
Info on this error is elusive. It occurs in versions greater than 2.0.
I am firing a one time alarm using a Pending Intent. To create the
PendingIntent I pass an intent (alarm), context and, receiver class
into a function called startAlarm.
alarm.setClass(context, receiver);
PendingIntent alarmIntent = PendingIntent.getBroadcast(context, API_ID
+alarm.getIntExtra(ALARM_ID, -1), alarm,
PendingIntent.FLAG_CANCEL_CURRENT);
I can call the function without error before the alarm occurs ... but
after the PendingIntent has launched I receive
Can't use FLAG_RECEIVER_BOOT_UPGRADE here, when calling getBroadcast()
This occurs with all FLAGS except NO_CREATE.
What exactly is causing this error?
Thanks for any info.
-Cody
--
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