Search code examples
androidnetwork-programmingmodem4g

Android : how to programatically determine whether the system has a 3G/4G radio?


I am programming a Nexus 7 and need to determine whether the system has a 3G/4G radio or not. How do I do that?


Solution

  • Use TelephonyManager.getPhoneType (). Returned values are

    PHONE_TYPE_NONE
    PHONE_TYPE_GSM
    PHONE_TYPE_CDMA
    PHONE_TYPE_SIP
    

    Checking if CDMA or GSM should work