I\'m registering a receiver to capture the ConnectivityManager.CONNECTIVITY_ACTION in code i.e. I am not registering it in the application manifest. All is working
Yes, that's called sticky broadcasts. Sticky broadcasts are sent to receiver as soon as registerBroadcast is called.
registerBroadcast