I have an application with several actions, and I want to receive notifications when the phone goes online (it doesnโt matter which of these actions the user enters). I found a broadcast receiver to do this, but I would like to know if there is a way to announce this BroadcastReceiver only once, I want to avoid the need to place a code in each action (I have more than 20 activities!).
Thanks.
source share