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. Hiiii Hello

Hiii Hello

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

2. Android Emulator on a somewhat older laptop

I'm running Ubuntu 8.04 on a Dell Inspiron 600m with 512MB of RAM, and
I'm dying to get into developing some Android apps, but I've hit a bit
of a roadblock.

I have installed Eclipse 3.4 and installed the 1.5 SDK and the
Developer Tools with no problem. I created a standard 1.5 AVD, but
when I try to run the emulator it just won't get anywhere.

It doesn't give me any error messages, but it won't get past the
animated startup screen. I have let it run for as long as 20 or 30
minutes, but it just won't finish the boot process. I tried to just
leave it running and forget about it for a while, but when I came back
to my computer, it had shut itself down -- I assume because the CPU
overheated. I've tried renicing the emulator to +1, and that at least
keeps the CPU temperature to a healthy level, but at that rate I have
no idea how long it will take to boot.

Now, I know my machine is hardly cutting edge -- it's about 5 years
old. But it's not exactly a dog, either. I know that running a QEMU
virtual machine requires some substantial resources, so I expected
things to be a bit slow, but I figured it should be able to at least
run.

Am I expecting too much from my old machine? Is this hopeless? I
expect to be able to get a new system in a few months, but I really
don't want to wait that long to get started. At the very least, I
would like to start learning the framework and APIs, even if it will
be slow going.

Anyone have any suggestions? Has anyone else out there gotten the
emulator to run (even if it's slow) on an older system?

Thanks for any help you can offer.

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

3. ItemizedOverlay & OverlayItem - How to display custom map labels

4. Publishing Apps as a US entity with foreign CC

5. How can I capture data from microphone and acceleration sensors?

6. International Keyboard.

7. Physical keyboard long press popup