The results of a most recent scan are available by calling
getScanResults, even if your application didn't start a scan, that's
probably the best you can do without initiating a scan.
However, if there is an active connection, then AFAIK, Android doesn't
initiate scans on its own. If there is none, and WiFi is enabled, it
does periodic scans looking for known networks, but not as often as 5
seconds.
Also scanning, I believe, is an explicit process that has to be
initiated with the WiFi radio chip, it doesn't just happen as a side
product of it being enabled.
So - in short - no. If you need to reliably get surrounding networks,
you've got to initiate scanning, or rethink why you need it so often.
-- Kostya
02.02.2011 13:09, Schoel пишет:
Hi,
Is it possible to get the RSSI of surrounding wireless networks
without doing a full scan? I need periodic updates about surrounding
networks perhaps every 5 seconds. Can't do a scan that often. Using
aidl would work if the info is available anywhere.
/Schoel
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en