The ResultReceiver.onReceive() method prints
ResultReceiver
Intent { act=xper.example.ORDERED_BROADCAST_INTENT_TWO } getResultCode() => 320 getResultData() => ExampleTwo, Three, TwoA
Begin Extras Three.value
=> Three
TwoA.value
=> TwoA
End Extras ResultReceiver done
8.3.3 Example Three Sending an ordered broadcast Intent which is not handled by any of the registered BroadcastReecivers.
8.3.3.1 Stage One Sending The Intent The Intent is sent as follows sendOrderedBroadcast( new Intent
"xper.example.ORDERED_BROADCAST_INTENT_FOUR"), null, new ResultReceiver(), null,
-3,
"ExampleThree", null
8.3.3.2 Stage Two ResultReceiver onReceive() Method Called The ResultReceiver.onReceive() method prints
ResultReceiver
Intent { act=xper.example.ORDERED_BROADCAST_INTENT_FOUR } getResultCode() => -3 getResultData() => ExampleThree
Begin Extras
End Extras
ResultReceiver done
Share with your friends: