I have seen this hidden API used in android source called setWifiApConfiguration()
to set up a AP. I have see couple of answers on SO using addNetwork()
and then enableNetwork()
(For ex: this). So what's the difference between the two methods?
setWifiApConfiguration()
is a HotSpot or Wi-Fi tethering API, where as addNetwork()
and enableNetwork()
are regular Wi-Fi operation APIs