title: Detecting open WiFi networks
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6866153/android-determine-security-type-of-wifi-networks-in-range-without-connecting-t">android: Determine security type of wifi networks in range (without connecting to them)</a>  </p>
  </blockquote>
  
  
  
  <p>Could someone help me see how to check for an open network in the list of available networks.</p>
  
  <p>I am getting the list of networks.</p>
  
  <pre><code>List&lt;ScanResult&gt; results = wifiDemo.wifi.getScanResults();
  
  ScanResult bestSignal = null;
  
  for (ScanResult result : results) {
    if (bestSignal == null
        || WifiManager.compareSignalLevel(bestSignal.level, result.level) &lt; 0)
      bestSignal = result;
  }
  </code></pre>
  
  <p>How can I check for the open auth?</p>