startScan() in WifiManager deprecated in Android P

前端 未结 7 2091
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 05:02

How to get scan result from wifi for example every 3 seconds, without mWifimanager.startScan();

Google says :

startScan() This method was

7条回答
  •  庸人自扰
    2020-12-08 05:35

    startScan() is actually pretty buggy on P, as I raised Google Issue 79906367.

    I don't think that WifiScanner is the replacement either, as that is marked as a SystemApi which means no access for Apps...

    Hopefully we will hear soon, as RTT still means you need to scan for APs which support 802.11mc using ScanResult is80211mcResponder which you check before performing RTT Ranging on the AP.

提交回复
热议问题