PDA

View Full Version : turn off 2G/3G/Gprs


kilmaster
21st June 2009, 08:32 PM
hello ,

I would like to know how I can turn on/off data network. I only find api for Wifi :

WifiManager wmanager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wmanager.setWifiEnabled(true);

If someone have an idea how can i do this.

Also i find : toggle Data ( on the market ). Toggle data can switch off/on all the data network. Does anyone know if we can launch an other program from an other one.

Something like :

// turn on 3G
start(toggleData.apk);

Thanks for any help !!! (and sorry for my bad english )

maxisma
21st June 2009, 08:36 PM
Toggle data changes the apn ;-)

alexjzim
21st June 2009, 08:36 PM
hello ,

I would like to know how I can turn on/off data network. I only find api for Wifi :

WifiManager wmanager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wmanager.setWifiEnabled(true);

If someone have an idea how can i do this.

Also i find : toggle Data ( on the market ). Toggle data can switch off/on all the data network. Does anyone know if we can launch an other program from an other one.

Something like :

// turn on 3G
start(toggleData.apk);

Thanks for any help !!! (and sorry for my bad english )

in settings, go to wireless control, then uncheck mobile network.

this is the wrong section. reported

kilmaster
21st June 2009, 08:42 PM
in settings, go to wireless control, then uncheck mobile network.

this is the wrong section. reported

I already know that ! What i want is to do the same thing but with a program.

So my new question is : How can I change the APN ?