5

Is there anyway we can check if the Android Device is WiFi only? For example Nexus 7 have WiFi-Only device and WiFi&3G device.

Zul
  • 1,274
  • 2
  • 12
  • 21

2 Answers2

8

I assume that getPhoneType() would help you for this.

OR

You could query the system features in your app to see if that works

PackageManager pm = getPackageManager(); boolean isAPhone = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);

If you care about GSM/CDMA use the more specific FEATURE_TELEPHONY_GSM or FEATURE_TELEPHONY_CDMA.

If the device is lying there is of course not much you can do afaik.

AnhSirk Dasarp
  • 9,026
  • 6
  • 43
  • 54
2

If you want to check that the wifi is connected or not then see this question:
How do I see if Wi-Fi is connected on Android?

If you want to check the network type than see this question:
how to check wifi or 3g network is available on android device

Community
  • 1
  • 1
totymedli
  • 26,417
  • 20
  • 126
  • 158