可能重复:
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;
}

如何检查打开的身份验证?

最佳答案

查看scanResult.capabilities

07-27 13:59