Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要枚举所有可用的 wifi 连接并连接到不受密码保护的连接。任何帮助/链接/建议将不胜感激。谢谢。
无线管理器。您将找到一种请求 WiFi 扫描的方法:startScan(),检索结果(使用 BroadcastReceiver):getScanResults() 并在这些结果中检查哪些接入点为您提供无密码关联。addNetwork() 和 enableNetwork() 将帮助您连接到其中任何一个。