开发者

is this systems broadcast ordered or normal broadcast?

I'm tryin开发者_如何学Cg to figure out if a system event broadcast is broadcasted using ordered broadcast or normal.. The event is EVENT_REMINDER and in the source for the calendarprovider i noticed it sets up a alarmmanager to sent the broadcast.

I can't find how the alarmmanager sends it. My guess would be as a normal broadcast , But while i was trying some things i noticed i could delay the system's notification (tried up to 10 sec) by building a sleep in my broadcastreceiver. This would indicate that they are handled ordered , and the systems receiver is only called when mine has finished.

But can i be sure of this behavour?? (in all 1.5> sdk versions) the docs state that in some cases normal broadcasts are also handled ordered..due to spare of resources.

All thoughts on this are welcome.... Thanks , arnold


You can check the isOrderedBroadcast flag in the BroadcastReceiver.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜