You could try turning it on with WifiManager.setWifiEnabled, and check the return value. With appropriate UI it might not be so bad.
Another idea is to check for the presence of low-level WiFi related files (such as /etc/wifi/wpa_supplicant.conf). This is clearly outside the boundaries of what a "proper" app is supposed to do, but then again, if the documented APIs are broken (yet again)... Yet another idea is to maintain a list of devices that are known to have WiFi and report is being absent, identifying them by fields found in android.os.Build . Time consuming, but doable. -- K 4 марта 2012 г. 15:28 пользователь RLScott <[email protected]> написал: > I know that the MAC may not be available if wifi is not turned no. That is > not what I was asking. I want to know if the device even has the capability > for wifi. Can I find that out reliably even if wifi happens to be turned off? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

