Code example for NetworkInfo

Methods: getSubtypegetType

0
		} 
	} 
 
	 
	private int getConnectionTypeFrom(NetworkInfo info) {
		if (isTypeMobile(info.getType()))
			return info.getSubtype();
		else 
			return info.getType();
	} 
 
	private boolean isTypeMobile(int type) {
		return ConnectivityManager.TYPE_MOBILE == type ? true : false;
	} 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE