How Does Android Resolve Multiple Entries In The Androidmanifest For The Same Broadcast Receiver With Different Permissions And Intent-filters?
I have run into this issue of defining permissions that are specific to intent-filters for a particular broadcast receiver. I was wondering how Android would resolve something belo
Solution 1:
I'm really not sure how it would handle the two different ones, but regardless, I would say it's bad practice to use two manifest listings for one receiver. What you could do is just make two Broadcast receivers, or just make one receiver with both intent filters. Then you could use extra data to control whether it matches what you wanted or not.
Really, I would recommend two receivers, though.
And I would THINK that your one receiver would have both intent filters and both permissions would be required for every call. Really all you could do to find out is test it.
Post a Comment for "How Does Android Resolve Multiple Entries In The Androidmanifest For The Same Broadcast Receiver With Different Permissions And Intent-filters?"