Within an app I am trying to create, I want to check for the availability of a hidden WiFi SSID. Sadly, networks with hidden SSIDs dont show up in scans so I cant wait for scan results returned via WifiManager.SCAN_RESULTS_AVAILABLE_ACTION
.
I attempted to use android.net.wifi.WifiManager.enableNetwork(int netId, boolean disableOthers)
after creating the WifiConfig for the network, thinking that it would return true if the network was able to be connected to, and false otherwise, but that pretty much always returns true, even in cases where i create gibberish WifiConfigs.
I just need to test if the hidden network is broadcasting or not. I know all of its information, including the SSID.