Android WifiManager making a phantom connection?
问题 I'm using WifiManager to test for the presence of a particular SSID and verify a given WPA password, but I'm getting a weird result. The code looks like this: WifiConfiguration wc = new WifiConfiguration(); // init ssid and password as Strings ... wc.SSID = "\"" + ssid + "\""; wc2.preSharedKey = "\"" + password + "\""; wc.hiddenSSID = true; wc.status = WifiConfiguration.Status.ENABLED; wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration