If your intention is to disconnect from WiFi, so the phone switches to
mobile data network, you can do it like this:
Get an instance of WifiManager
Either: disable WiFi altogether, using wifimanager.setWifiEnabled(false)
Or disconnect from the current network:
WifiInfo wfi = wifimanager.getCo
On Sun, Jun 20, 2010 at 2:25 PM, reda wrote:
> Can anybody please tell us if it is possible to change network
> connection programmatically ?
That is handled via the OS, not programmatically, AFAIK.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://comm
Hi,
Can anybody please tell us if it is possible to change network
connection programmatically ? How can we do a fail over ?
If no, when it will be available ?
Thanks
On 29 avr, 15:45, vikky wrote:
> Hi..
> thnx for the reply..
> I have tried so many things...but not able to activate the
Hi..
thnx for the reply..
I have tried so many things...but not able to activate the other
connection mode..
i tried this..
setNetworkPreference(ConnectivityManager.TYPE_WIFI)
but it is not working asking for permission again and again..and i
provided all the permission..listed below
4 matches
Mail list logo