How to get scan result from wifi for example every 3 seconds, without mWifimanager.startScan();
Google says :
startScan()
This method was deprecated in API level P. The ability for apps to trigger scan requests will be removed in a future release.
Notice for this API level i'm using
List<ScanResult> results = mWifiManager.getScanResults();
without calling startScan
, the list contains the wifi AP's but it makes updated very very slow
Update to 12 January 2019 : https://issuetracker.google.com/issues/112688545
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…