What interval should I use between each WiFi scan on Android?
问题 I need to perform Wifi scans at regular intervals. I am encountering a problem when the time interval is set to 1-2 seconds. It seems like I am not getting any ScanResult . Is there a minimum amount of time to set so that the WifiManager is able to perform a successful WiFi scan? Here is the code. I am using a Service to do the Wifi scan: public class WifiScanning extends Service{ private static final String TAG = "WifiScanning"; private Timer timer; public int refreshRate, numberOfWifiScan,