I want to be able to send the Intent from one of my applications to another and I then want to get data back from the Application that recieves the Intent, in this case a boolean true or false.
Here is the current code:
- Code: Select all
Intent i = new Intent();
sendOrderedBroadcast(i, null, null, null, Activity.RESULT_OK, null, null);
Is this the correct way to achieve what I want?
If so what do I use as the resultReceiver* parameter? (3rd parameter)
And then how to I recieve data back from the Broadcast?
I have done a quick google and not come up with any examples, any help or examples greatly appreciated.
*resultReceiver - Your own BroadcastReceiver to treat as the final receiver of the broadcast.