code: private void registerConnectivityReceiver() {
  		IntentFilter intentFilter = new IntentFilter();
  		intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
  		context.registerReceiver(connectivityReceiver, intentFilter);
  	}
docs: Registers receiver to be notified of broadcast event when network
  connection changes