title: Android - What´s the difference between WifiManager disableNetwork() and disconnect()
body: <p>What´s the main difference between the WifiManager <code>disableNetwork()</code> and <code>disconnect()</code> method?</p>
  
  <p>If I´m not guessing wrong, the <code>disconnect()</code> method makes it candidate for a reconnect when it enters inside the visibility of the wifi hotspot but <code>disableNetwork()</code> don't.</p>
  
  <blockquote>
    <p><strong>public boolean disableNetwork (int netId)</strong>. Disable a configured network. The specified network will not be a candidate for
    associating. This may result in the asynchronous delivery of state
    change events.</p>
    
    <p><strong>public boolean disconnect ()</strong> Disassociate from the currently active access point. This may result in the asynchronous delivery of
    state change events.</p>
  </blockquote>
  
  <p>I´ve a Wiko Darkmoon (Android 4.2.2) device for testing purposes and when I call <code>disconnect()</code> it reconnects some seconds later to the same wifi point without taking in mind higher priority networks neither the quality of the signal.</p>
  
  <p>So my questions are:</p>
  
  <ul>
  <li>What's the difference between <code>disableNetwork()</code> and <code>disconnect()</code> method?</li>
  <li>It´s my guess right?</li>
  <li>It´s the Wiko's implementation the right one or it´s the one misfiring?</li>
  <li>When roaming between two wifi spots with same SSID and after calling <code>disconnect()</code> will it filter by SSID or MAC for the reconnect?</li>
  </ul>
  
  <p>Thanks</p>