0

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?

manlio
  • 18,345
  • 14
  • 76
  • 126
user43995
  • 597
  • 2
  • 8
  • 21

2 Answers2

2

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

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127
0

You can probably just check for the presence of a mobile network type.

boolean hasRadio()
{
     ConnectivityManager connManager = (ConnectivityManager) getActivity().getSystemService(Activity.CONNECTIVITY_SERVICE);

     return (connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) != null);
}
selbie
  • 100,020
  • 15
  • 103
  • 173