找到其中的WiFi热点的公共或安全使用编程方式热点、方式、安全、WiFi

2023-09-07 00:54:13 作者:残阳

我想知道我可以过滤使用的是Android的WiFi API或Android SDK,它被固定或公共热点?

I want to know how I can filter hotspots that are secured or public using Android WiFi API or Android SDK?

推荐答案

你需要的一切是在android.net.wifi包。特别是,ScanResult.capabilities串将包含WPA2,WPA或WEP如果热点被固定

Everything you need is in the android.net.wifi package. In particular, the ScanResult.capabilities string will contain either 'WPA2', 'WPA' or 'WEP' if the hotspot is secured.