tags:

views:

116

answers:

1

Hi everyone, I m 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();

Can anyone please help to find out and solve the problem.

Thanks and regards Mintu

+3  A: 

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.

RadioInfo JavaDocs for 4.5

Fostah
Thank you so much Fostah.. hop this will work.... thanks again
RockOn