Reputation: 89
I am using the google maps geolocation API. There is a field in there named radioType and the only supported values are GSM,CDMA,WCDMA, and LTE. Although these field is optional, I included it for more accurate results. I tried searching for code to find this. But I haven't found any. I want to find the radio type of the android phone. Any help would be greatly appreciated.
Upvotes: 0
Views: 1334
Reputation: 139
You can use telephonyManager to get the current network type
final TelephonyManager telephony = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
and use the following function to get the network type
telephony.getNetworkType();
Upvotes: 4