In the application that I am trying to create, I want to check for the presence of a hidden WiFi SSID. Unfortunately, networks with hidden SSIDs are not displayed in the scan, so I can not wait for the scan results returned through WifiManager.SCAN_RESULTS_AVAILABLE_ACTION .
I tried using android.net.wifi.WifiManager.enableNetwork(int netId, boolean disableOthers) after creating a WifiConfig for the network, believing that it will return true if the network can be connected and false otherwise, but it almost always returns true even in cases where I create a WifiConfigs tattoo.
I just need to check if the hidden network is broadcasting or not. I know all his information, including SSID.
source share