Skip to content Skip to sidebar Skip to footer

How Connect Android To No SSID Public And No Password Requered

i can't connect Android on SSID established, i try WifiConfiguration but unsucessfull, my ssid is open (without password). In Android UI i can connect, but on code i can't. Anybody

Solution 1:

Probably because wifiManager.reconnect(); starts an asynchronous process to connect. When your code reaches the last line, there is yet no connection (that takes time, may even be a minute or so), so null is the correct answer at that moment. You will need a listener to react on the connect event. See that question for details: https://stackoverflow.com/a/5890553/1503237


Post a Comment for "How Connect Android To No SSID Public And No Password Requered"