Recently Android added the ability to connect to EAP WIFI with API 18 (JellyBean 4.3). I have looked for a number of examples, but can\'t find any examples, and I can\'t get my
You need to set the key management
WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig();
wifiConfig = new WifiConfiguration();
wifiConfig.SSID = ssid;
wifiConfig.allowedKeyManagement.set(KeyMgmt.WPA_EAP);
wifiConfig.allowedKeyManagement.set(KeyMgmt.IEEE8021X);
enterpriseConfig.setIdentity(userName);
enterpriseConfig.setPassword(passWord);
enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PEAP);
wifiConfig.enterpriseConfig = enterpriseConfig;