Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting open WiFi networks [duplicate]

Tags:

android

wifi

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?

like image 269
Arvind Murthy Avatar asked Nov 05 '22 06:11

Arvind Murthy


1 Answers

Check out scanResult.capabilities.

like image 189
Peter Knego Avatar answered Nov 13 '22 16:11

Peter Knego