I want to enable/disable specific wifi connection from available wifi networks.I am referred
this url: how to connect to a specific wifi network in android programmatically. But WifiManager.addNetwork(WifiConfiguration)
always returns -1.
Is it need to disable current wifi before attempt to connect to a specific one?
Why this connection fail always?
How can i connect and enable/disable a specific wifi network using ssid?
Thanks in Advance,