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. Camcorder Application APIs

Hello to All,

I have never written apps on Android before. No idea of how to even
compile code on Java.
Just got an idea and want to start writing an app.

I went through the SDK but couldn't find what I wanted so asking a
question to the experienced developers community.

I want to write a camcorder application where I want to embed the
graphics as part of my input video stream. Its like on screen
messaging over video but instead of using the text mode, I want the
graphics mode. Basically, whatever I draw on the on-screen surface
using touchpad, that surface content should be logically "AND"ed to
the captured buffer surface and my drawing should be fed to the
encoder engine.

Can you one point out if we have such framework available on android
sdk yet.

thanks

-- 

2. bluetooth test case is failing in android

Hi all,
    iam new to android and I have assigned a work to solve issues on
CTS.
Currently iam working on android GB and I have a doubt regarding
bluetooth testing with CTS.

1. Can we test bluetooth feature with CTS ith single phone ? (I have
only one phone with me)
2. If yes then in my case "testBluetoothFeature" is failing for me
saying that "PackageManager#hasSystemFeature should return true for
android.hardware.bluetooth"
when I debugged that code I came to know that "hasSystemFeature"
function is returing false.
If this feature can be tested with one phone then where do we set
these system features in the code.

Please help me out in solving this issue.

-- 

3. Question about Opengl ES2.0 in 2.3 SDK

4. sipdroid video call over asterisk

5. Emulating native EGL via Java/JNI access?

6. how to auto answer call programmatically

7. back button with activity