title: getting the result of a wifi scan only when calling wifi.startScan
body: <p>I  want to get the result of the WiFi scan only when I call <code>startScan()</code>, but what I get is the that the results keep changing even though I called <code>startScan()</code> only once . My point is I want to update the scan results only when calling <code>startScan()</code> .</p>
  
  <p>I read about <code>WIFI_MODE_SCAN_ONLY</code>, it says </p>
  
  <blockquote>
    <p>In this Wi-Fi lock mode, Wi-Fi will be kept active, but the only
    operation that will be supported is initiation of scans, and the
    subsequent reporting of scan results. No attempts will be made to
    automatically connect to remembered access points, nor will periodic
    scans be automatically performed looking for remembered access points.
    Scans must be explicitly requested by an application in this mode.</p>
  </blockquote>
  
  <p>I don't want to have periodic scans unless I call <code>startScan()</code> , but I have no idea were to set that flag I have tried to pass this way</p>
  
  <pre><code>      receiverWifi = new WifiReceiver();
        registerReceiver(receiverWifi, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
  </code></pre>
  
  <p>Any help is really appreciated , I have been working on solving this for so long.</p>