I want to connect to a SSID
wifi network in app.
Code:
WifiConfiguration conf = new WifiConfiguration();
conf.SSID = "\"" + networkSSID + "\"";
But the problem is that I don't know the network SSID
. How to get SSID of a WiFi Network without connecting
to it?
If you want to get all available wifi :
If you want to connected wifi ssid :
If you want to add new wifi settings i have written demo app below :
Use
WifiManager#getScanResults()
. This gets you a list ofScanResult
objects each of which provides an SSID property.