Skip to content Skip to sidebar Skip to footer

Android Using Wifimanager To Connect To Wpa-psk Secured Network

so I have trawled true all threads in here and any where else where google would take me. But still I am having problems connecting to WPA PSK networks. Here is my code, I have 2 e

Solution 1:

Again big thanks to Ryan for proposing how to read the settings created by the OS.

So I thought I had tried everything suggested here on stack overflow. But this thread actually helped me in the end Setup wifi programatically using WPA Security in android tablet So big thanks to RYAN for providing the tips on reading one AP and then mimmick it. In my case it turned out that I needed to add Even though I am setting up for WPA I still needed to add allowedGroupCiphers WEP40 and WEP104 And I only had

`wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); //So I also added 
 wc.allowedProtocols.set(WifiConfiguration.Protocol.WPA);`

Post a Comment for "Android Using Wifimanager To Connect To Wpa-psk Secured Network"