Android, wifi active scans

后端 未结 2 1351
醉梦人生
醉梦人生 2021-01-16 00:37

I need a frequent wifi scan on my android application (I\'m trying to build a local indoor positioning system based on wifi RSSI values). IF I call wifi.startScan() I have o

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-16 00:55

    I don't think you can. It is a device and/or OS version dependend setting. On the Nexus One for example it takes roughly a second to scan whereas on the G1 it takes significantly longer (or get fresh results after a few scans). If I recall correctly, some Android Version (< 2.0) did not issue a fresh scan everytime startScan() was called but might have reused the old result. But I might be mistaken on that one.

提交回复
热议问题