Only one BroadcastReceiver for each application?

The Google Analytics SDK documentation mentions the following:

Only one BroadcastReceiver class can be specified for each application. If you need to enable two or more BroadcastReceivers from different SDKs, you will need to create your own BroadcastReceiver class that will receive all broadcasts and call the corresponding BroadcastReceivers for each type of broadcast.

https://developers.google.com/analytics/devguides/collection/android/devguide

How true is this for ICS and above? In my current application, I actually already have two receivers, and this seems to work fine.

+4
source share
1 answer

I assume this means that you cannot have more than one BroadcastReceiver that is listening to the same specific Inent broadcast (via the intent filter). I have to try this to see if it works.

In any case, we had applications with many BroadcastReceivers broadcasters with Android 1.6, so maybe there can be many BroadcastReceivers in one application.

+3
source

All Articles