title: What's the difference between addNetwork()/enableNetwork() and setWifiApConfiguration()?
body: <p>I have seen this hidden API used in android source called <code>setWifiApConfiguration()</code> to set up a AP. I have see couple of answers on SO using <code>addNetwork()</code> and then <code>enableNetwork()</code> (For ex: <a href="https://stackoverflow.com/questions/8818290/how-to-connect-to-a-specific-wifi-network-in-android-programmatically">this</a>). So what's the difference between the two methods?</p>