Reputation: 1425
I am trying to find a code that with help me to find out the device serive-type like CDMA / GSM . I have tried the code below but not helped.
DeviceInfo.getDeviceName();
Upvotes: 2
Views: 1085
Reputation: 11796
You're looking for the RadioInfo class:
if(RadioInfo.getNetworkType() == RadioInfo.NETWORK_CDMA) {
// Do something specific for CDMA
}
There are several network constants in RadioInfo, all prefixed with NETWORK_. See the docs linked to below for more details.
Upvotes: 5