A
normal broadcast Intent is sent
asynchronously and the ordering
of its delivery to the set of BroadcastReceivers eligible to receive it is undefined. An
ordered broadcast Intent is delivered sequentially to each member of the set of BroadcastReceivers eligible to receive it in the order defined by the priority of the associated IntentFilters. An ordered broadcast Intent can have additional data associated with it in the form of o a code (an into data (a String, and o extras (a Bundle) The initial values of the additional data can be specified by the sender of the ordered broadcast Intent The current values of the additional data can be read and/or replaced by each BroadcastReceiver which receives the ordered broadcast Intent Any BroadcastReceiver which receives an ordered broadcast Intent can stop the sending process The sender of an ordered broadcast Intent can specify that it be
notified when the broadcast has completed The sender of an ordered broadcast Intent can access the final values of the additional data when it is notified that the broadcast has completed. A broadcast Intent can be specified to be
sticky in which case it will be retained by the system after it has been sent. A sticky broadcast Intent can be removed after it has been sent.
BroadcastReceivers dynamically registered after a sticky
broadcast Intent has been sent, and not subsequently removed, will still receive it if all other the criteria for receiving it have been met. A sticky broadcast Intent can be retrieved at anytime after it has been
sent without registering a BroadcastReceiver. An Application can specify a permission when sending a normal or ordered broadcast Intent. A BroadcastReceiver cannot receive a normal or ordered broadcast Intent sent with an associated permission if the Application that registered the BroadcastReceiver has not been granted that permission. An Application can specify a permission when registering a BroadcastReceiver. A BroadcastReceiver registered with an associated permission cannot receive any normal or ordered broadcast Intent sent by an Application which has not been granted that permission. When used in this way Intents are effectively
Events and BroadcastReceivers are
Event Handlers/Listeners.
Share with your friends: