我想从我的应用程序中检查设备是否具有 WiFi 连接,但为了做到这一点,我必须首先找到一种在模拟器中获取“WiFi”的方法。只需转到Settings -> Wireless controls -> Wifi说Unable to start Wi-Fi,同时logcat
说:
E/WifiService( 566): Failed to load Wi-Fi driver.
D/SettingsWifiEnabler( 695): Received wifi state changed from Unknown to Enabling
D/SettingsWifiEnabler( 695): Received wifi state changed from Enabling to Unknown
如何在模拟器中模拟 WiFi 连接?