检测开放的WiFi网络

时间:2012-01-28 12:24:25

标签: android wifi

  

可能重复:
  android: Determine security type of wifi networks in range (without connecting to them)

有人可以帮我看看如何检查可用网络列表中的开放网络。

我正在获取网络列表。

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;
}

如何查看open auth?

1 个答案:

答案 0 :(得分:2)

相关问题