startScan() in WifiManager deprecated in Android P

前端 未结 7 2090
没有蜡笔的小新
没有蜡笔的小新 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:43

    I think google is planning to restrict application from scanning wifi.

    This method was deprecated in API level 28. The ability for apps to trigger scan requests will be removed in a future release. Check the documentation here.

提交回复
热议问题