How to determine if network type is 2G, 3G or 4G
问题 I have an indicator on my application to display the network type (2G or 3G or 4G) but after getting the network type, how do I know what speed category it should be in? I know how to detect the network type: private TelephonyManager telephonyManager; telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); CurrentNetworkType = telephonyManager.getNetworkType(); Given the possible return values: // public static final int NETWORK_TYPE_1xRTT // Since: API Level 4 //