title: Android WiFiManager.getScanResults() does not return hidden SSID data
body: <p>I'm working on an Android project to scan the local WiFi environment in our office. The short story is that we want to find access points that don't belong there.</p>
  
  <p>The problem: Android does not seem to return information regarding access points with hidden SSIDs. Does anyone know how this is done? On other platforms a scan result set would typically contains all the usual data regarding an access point with a hidden SSID, minus (obviously) its SSID.</p>
  
  <p>Does anyone know how this is done on Android?</p>
  
  <p>My code looks like examples I've seen:</p>
  
  <pre><code>public class Scanner {  
      private WifiManager mainWifi;
      private WifiReceiver receiverWifi;
      // ...
      public Scanner(Context context){
          mainWifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
          receiverWifi = new WifiReceiver();
          context.registerReceiver(receiverWifi, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
          mainWifi.startScan();
      }
      // ...
      class WifiReceiver extends BroadcastReceiver {
          public void onReceive(Context c, Intent intent) {
              List&lt;ScanResult&gt; scanResultsList = mainWifi.getScanResults();
              // ...
          }
      }
  }   
  </code></pre>
  
  <p>Thanks! </p>