Connect to Wifi programmatically not working for Android Marshmallow?
问题 String BACKSLASH = "\""; String NETWROK_SECURITY_WEP = "WEP"; String NETWROK_SECURITY_NONE = "NONE"; String NETWROK_SECURITY_WPA = "WPA"; String NETWROK_SECURITY_WPA2 = "WPA2"; String NETWROK_SECURITY_WPA_WPA2 = "WPA/WPA2 PSK"; String NETWROK_ADDITIONAL_SECURITY_TKIP = "TKIP"; String NETWROK_ADDITIONAL_SECURITY_AES = "AES"; String NETWROK_ADDITIONAL_SECURITY_WEP = "WEP"; String NETWROK_ADDITIONAL_SECURITY_NONE = "NONE"; int FAILED_TO_ADD_NETWORK = -1; WifiConfiguration conf = new