I am using ConnectivityManager.getActiveNetworkInfo.isConnectedOrConnecting ()
I just checked this 5 minutes ago to make sure, and if everything works, and I leave my home until my router is no longer within range and the network indicator in the status bar shows the network, the call to isConnectedOrConnecting () from application returns false.
I believe that is not the behavior that you see?
source share