Code example for NetworkInfo

Methods: isConnected

0
		// Get the NetworkInfo Parcelable 
		NetworkInfo networkInfo = intent
				.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
 
		// Check for the connection 
		boolean isConnected = networkInfo.isConnected();
		if (isConnected) {
			mImageViewNext.retryFromNetworkIfPossible();
		} 
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE