Anything like isWifiEnabled and setWifiEnabled for 3g an 2g/gprs?

by Rory McCann » Tue, 21 Apr 2009 01:36:26 GMT


Sponsored Links
 Hi all,

I see 
 http://developer.android.com/reference/android/net/wifi/WifiManager.html #isWifiEnabled()
that you can see if the wifi is enabled or disabled and also us
 http://developer.android.com/reference/android/net/wifi/WifiManager.html #setWifiEnabled(boolean)
to turn on and off the wifi.

I'm wondering if it's possible to do the same for 3G and for 2G/GPRS?
I know it's possible because you can turn off 3G and left 2G on.

The reason I want to do this is to write a simple application that
will let you easily turn on and off the wifi/3g/2g. I'm in Ireland and
don't have a unlimited data plan. I'd also like to turn off wifi/3g/2g
easily at certain time to prolong battery life.

--~--~---------~--~----~------------~-------~--~----~



Anything like isWifiEnabled and setWifiEnabled for 3g an 2g/gprs?

by Rory McCann » Tue, 21 Apr 2009 01:37:30 GMT


 Hi all,

I see 
 http://developer.android.com/reference/android/net/wifi/WifiManager.html #isWifiEnabled()
that you can see if the wifi is enabled or disabled and also us
 http://developer.android.com/reference/android/net/wifi/WifiManager.html #setWifiEnabled(boolean)
to turn on and off the wifi.

I'm wondering if it's possible to do the same for 3G and for 2G/GPRS?
I know it's possible because you can turn off 3G and left 2G on.

The reason I want to do this is to write a simple application that
will let you easily turn on and off the wifi/3g/2g. I'm in Ireland and
don't have a unlimited data plan. I'd also like to turn off wifi/3g/2g
easily at certain time to prolong battery life.


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. App Market Question

I upgraded my apps to 1.6 so (minsdk 4) which mean's I am ruling out
all 1.5 devices (Android Eiris for VZ) is that correct ?


Also is there a way to limit my apps to 1.X only ? I want to release
2.0 with different code set ?

Thanks in advance.

-- 

2. ADB dan Fastboo

Guys, nanya dong, basic banget nih...saya ngalamain ADB: no device found

1. Kondisi awal : perintah adb semua lancar, hardware ketemu. Setelah mau
lakukan proses boot menggunakan fastboot, katanya fastboot : no device
found. Setelah cari kiri -kanan, ternyata ada driver android yang blm
diinstall.
2. kondisi skrg : perintah adb malah mogok, gak bisa sama sekali , bahkann
adb devices katanya no device found. kalo fastboot lancar, tapi booting pake
perintah fastbook boot recovery.img katanya cant load "recovery.img"

Pertanyaannya gimana ya ngaktifin adb lagi seperti semula en saya bisa
melanjutkan proses rooting.

Thanks.....udah ngutak ngatik 3jam gka bisa juga nih :[
-- 

http://hobby.keluargareski.net
Sent by XPS via gmail

--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Get phone's username

4. GPS low signal

5. LinearLayout stack overflow, fails on 1.5, ok on 1.6?

6. About openConverter of icu

7. ACTION_POINTER_DOWN