I am writing an application where I need to have a special GPRS connection, even if Wi-Fi or 3G (or better) is available. I figured out how to disable Wi-Fi (using WifiManager ), however I canβt figure out how I can disable 3G programmatically and use only the GPRS connection, which is equivalent to manually changing this in the deviceβs settings.
Is there any way to do this with code?
UPDATE What I'm looking for does not have to be in the Android public APIs. It could also be in one of the undocumented APIs or, in extreme cases, device specific APIs, I just need something that works. However, I would prefer not to use the device to use these features.
source share