code: @Override
  	public void onResume() {
  		
  		super.onResume();
  		
  		if(ProfileService.getInstance(getActivity().getApplicationContext()).isActive(this, Profile.NETWORK)) {
  		
  			if(!PermissionUtils.isGranted(this, Manifest.permission.ACCESS_NETWORK_STATE)) {
  				
  				Log.e(getClass().getSimpleName(), "Failed to register a receiver for changes in network state. ", 
  					new IckleBotRuntimeException(
  						new PermissionDeniedException(Manifest.permission.ACCESS_NETWORK_STATE, Profile.NETWORK)));
  			}
  			else {
  			
  				IntentFilter intentFilter = new IntentFilter();
  				intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
  				
  				getActivity().registerReceiver(networkStateReceiver, intentFilter);
  			}
  		}
  	}
docs: <p>Registers a {@link BroadcastReceiver} to listen for changes in the data
  connection state and invoke the appropriate callbacks.