Re: [android-developers] Re: How to set Connection mode?

2010-06-20 Thread Kostya Vasilyev
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

Re: [android-developers] Re: How to set Connection mode?

2010-06-20 Thread Mark Murphy
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

[android-developers] Re: How to set Connection mode?

2010-06-20 Thread reda
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

[android-developers] Re: How to set Connection mode?

2010-04-29 Thread vikky
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