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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With