Possible Duplicate:
android: Determine security type of wifi networks in range (without connecting to them)
Could someone help me see how to check for an open network in the list of available networks.
I am getting the list of networks.
List<ScanResult> results = wifiDemo.wifi.getScanResults();
ScanResult bestSignal = null;
for (ScanResult result : results) {
if (bestSignal == null
|| WifiManager.compareSignalLevel(bestSignal.level, result.level) < 0)
bestSignal = result;
}
How can I check for the open auth?
Check out scanResult.capabilities
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With