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.
根据这篇文章,是否可以在不使用未记录的 API 调用的情况下在 android 上执行主动 wifi 扫描startScanActive()?
startScanActive()
是否有其他可能性来执行此操作并执行主动扫描?
好吧,这似乎是不可能的。此处描述了使用 startScanActive() 的一种可能的“解决方法” ,但不能保证其有效。
您应该使用 WifiManager 类、startScan() 和 getScanResults() 方法