可能重复:
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;
}我怎样才能查到开放的月份呢?
发布于 2012-01-28 12:33:13
看看scanResult.capabilities。
https://stackoverflow.com/questions/9045208
复制相似问题