Android using wifimanager to connect to WPA-PSK secured network

爷,独闯天下 提交于 2019-12-01 14:27:53
Lasse

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);`
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!