Send Broadcast Intent To Only One Application Without Using Explicit Intent
I have a problem. I'm doing a external android service where applications can register to it to receive information. The information come back to the apps from the service via broa
Solution 1:
If I understand your question correctly, your concern is in how to have the service send information back to the clients, securely.
In that case, you can use a PendingIntent
.
A PendingIntent
is Parcelable
, and so it is easy for the clients to deliver to the service. Your service can track these and send()
them as needed, supplying additional data to be put into the Intent
extras for the Intent
wrapped by the PendingIntent
.
The component that will respond to the PendingIntent
-- activity, service, or receiver -- does not need to be exported.
Post a Comment for "Send Broadcast Intent To Only One Application Without Using Explicit Intent"