In this tutorial a class derives from BroadcastReceiver
. It then receives messages. How? This is just a definition of a class, not an instance of it!
And after we figure that out - how do we prevent this from happening so that we can use this class with a LocalBroadcastManager
, limiting it to the app only? (Not with the same exact case as in the tutorial, of course, because that's a message that's not from the app.)