If you have multiple Broadcast receivers how do you identify for which application is it coming?
Question is not so clear. But if the question is how does Android sends broadcasted message to different application, then it is based on the action, data, and category present in the intent.
Android will perform action test, data & type test, and category test. If all the test are passing with any of the intent filters of receivers, then those receivers will be triggered.
If multiple receivers intent-filters are matching with the intent then all the receivers will be triggered. But there is no specific order if priority is not set in the intent filter.
Back To Top