There are lots of examples on StackOverflow and elsewhere that use the class LocalBroadcastManager
to avoid broadcasting events outside of an app.
However, this class uses the Android support library as shown in the package name: android.support.v4.content.LocalBroadcastManager
.
Is there an equivalent of LocalBroadcastManager
in the standard SDK that does not use the Android support library?
It does not seem that the sendBroadcast
method in android.content.Context
has this kind of security granularity.