Android :: How To Enable / Disable GPRS / EDGE Data Connection?

Apr 16, 2009

The service providers in my country are charging for the MBs I downloaded in my GPRS/EDGE connection. So, whenever I want to disable the GPRS, I just change my default APN to something wrong and then correct it when I want to enable it again. I couldn't find another way to enable/disable. I think,Android team assumed that only 3G users with a good data plan only would use this phone. Anyway, I just want to develop an application which can do that automatically for me. However; I couldn't find how to change the APN settings in the docs. but I couldn't find how to use it. Could you please help me? Any alternative ways and/or suggestions are welcome.

Have finally received my X10 and must say am very impressed with it on the whole.Am finding it fast and responsive but do get the occassional need to tap the selection again and have also experienced the 'a' issue with the keyboard.

Have got a few questions which hopefully you guys can help with as Android is all new to me having come from Windows Mobile:

*Is there a way to disable the GPRS connection as it seems to be continuously connected or is this normal with Android?

*Do you guys know of a GPRS data app that can monitor my internet usage?

*Am going to purchase 'Betterkeyboard' from the Marketplace but if I was to factory reset the handset would I be able to download the app without paying again.

still scratching the surface of Android and the X10 so haven't come across the common complaints yet e.g. low sound both incall and ring tone...

I have recently upgraded to the HTC DESIRE on o2, So far all I have seen is the "G" = GPRS, so far I have not seen 3G, E, or the HDPSA or what ever it is :-). Does o2 support anything else but "G" on this handset etc etc, or is my phone faulty ? I live in the UK and so far today I cant even use my internet - O2 have said there are having issues with 3G but didnt say where in the UK or maybe this is Nation Wide ?

I am currently in China and therefor run a VPN on my PC to connect to the outside world, I would also like to run the same VPN (PPTP) on my android. I can connect via VPN if I am using WiFi but when I try to connect over GPRS/Edge I can't get any connectivity. All web pages load with the standard "web page not available" and apps, eg. the market place, won't connect either. I would have thought that if it was a carrier issue (CMCC) I wouldn't be able to connect to the VPN in the first place. So is this a Android issue, a setup issue or a carrier issue? And can you actuality run a VPN over GPRS om Android?

Is there any app or some thing like that, that I could use it to turn on mobile Internet 2G (EDGE/GPRS) or 3G (UMTS/HSDPA). I now turn off/on mobile Internet with Toggle Data widget, that changes APN type to "-" so it can't work. I am asking this because i use GPS tracker app. And I can turn it on with sms with code: "gps_tracker_start But if i want to report my location I need to be connected to Internet. So I could see my android phone even if it is not connected to internee. So is there any option to turn on mobile Internet remotely?

Just installed Galaxo 1.6.3.4, everything works great, except that gprs/edge capabilities seem to be switched off? They used to work before the root. I can use wifi, but cannot get any data traffic outside wifi areas.

I am unable to use Gtalk, gmail, Maps, Market, Email (all pre installed) using GPRS/EDGE (Vodafone Live) on my Milestone. But All of these works with Wi-Fi connection. I installed Meeboo Messanger, this is also not working with GPRS/EDGE.

I called Motorola Customer care, they are saying that I have to take a DataPlan from Vodafone and should ask Vodafone to activate all GPRS/EDGE settings on my mobile. So I took a DataPlan (200 Rs. 100 MB), Vodafone People are saying that all available setting are already activated on my cell. But I am still unable to use any of them above. Every time no network connection found error is coming.

Don't know how to start , so here goes. I got my Desire a few days ago and have been slowly playing around with it. Any way whilst messing about on the internet I have noticed that I don't have a "G" "3G" indicator for my connection . I only have a "H".

Which is best...is one better than the other? I had a Nokia E71 and was more or less always connected via "3G".

Is there an application that I am able to see which application is utilising the GPRS connection, because it seems that there's an app doing it whilst it is closed or I haven't turnt off the auto update, any app that can tell me what app is using it?

My friend was using my phone and he stopped some running services, since then my phone's wi-fi and GPRS not working, I have already tried restoring it to factory reset , but it doesn't work even after restoring phone to factory settings. Phone just keeps on searching wi fi network and in GPRS mode it shows network connection error.

For those of you looking to either Enable JIT or Disable JIT on a ROM that has JIT built in (or you've manually flashed it) and decided you wanted to remove it. I had a little trouble searching so I figured I'd post it with a simple logical subject line for future searching.

In the /System Directory you need to fine the file called: build.propthen edit the line:dalvik.vm.execution-mode=int:jitto say:dalvik.vm.execution-mode=int:fastand revsere it to enable it back (fast to jit)

You can do this a few ways.1. Use a file explorer on your phone (such as ES File Explorer) or Root Explorer find the direcotry /system make sure the drive is R/W (read/write). Open the file, build.prop, then scroll down to the bottom of the file and it should be within the bottom 5 lines and do as stated above.

I got my Incredible almost two weeks ago and haven't modified it in any way other than switching to LauncherPro instead of Sense. I've seen these buttons (highlighted in red in the screenshots) in various places; Used for selection of a single item or as "enabled" or "disabled", they just don't look right. Especially in Astrid, they don't look like they do in the screenshots from the market. what are these buttons called (they're not radio buttons or checkboxes, so I'm assuming they have a name)? Does this happen to anyone else?

So I have been searching for an easy way to enable and disable my pin lock. For example while at work I want it pin locked but as soon as I get in my car I would like to turn off the pin lock... going into the settings gets cumbersome and just looking for a way to save a few seconds.

Is there some way to enable/disable the APN's you have added on the phone? The only thing I see is the "restore default settings" choice. I would like to find a way to enable/disable the APN's so it doesn't stay active all the time...

I want to enable/disable bluetooth through the program..I has the following code. BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (!mBluetoothAdapter.isEnabled()) {Intent enableBtIntent = new Inten BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); But this sort of code is not working in SDK 1.5..How can i do the same in SDK 1.5.?

I need to find a way to enable / disable mobile data (the thing you can manually enable / disable in Settings->Wireless->Mobile Network (android 2.1)But I can't find any API for that.For WIFI, there's a method setWifiEnabled(boolean) on the class WifiManager. But I can't find anything like that for the data network... no method for this on TelephonyManager or ConnectivityManager.Isn't it possible to programmatically enable / disable mobile data?

I want, and I have for a while been willing to, disable and enable DATA (2g, 3g, whatever) with a long press of the search button. And I mean only long-pressing it, NOT opening an app with it and disable it from the app (doesn't make any sense, otherwise one would press the HOME button and disable it from a widget there).

Is it possible to enable/disable action bar icons? The scenario is that on the action bar there are two search icons, but they do different jobs, one searches the contents of the app while the other filters the listview (searches the table of contents only).

So if a user only wanted to use only one search method, is it possible to make an option in the settings on the app to enable/disable action bar icons?

I enabled APN in the settings. But, I want to be able to enable/disable my APN so I can be sure that I'm not getting charged for using the Internet when I'm not. On the top of my screen I see an E with 2 arrows, one pointing up and one pointing down, when I turn my WiFi on this disappears and is replaced by a WiFi icon, and I don't get charged for browsing. But I want to be able to turn APN on and off, I can't uncheck the option for APN which I chose, and the application I downloaded does not work. The icon remains there when I'm not connected to a router even if APN is disabled.

As Nexus One is the only model which has already "partly" updated to Froyo,Before Froyo, if I wanna enable/disable mobile data usage, I used a passive way, changing the APN server setting, to fool the system so it couldn't connect.In Froyo, there is a new option under Setings -> Wireless & Network Settings -> Mobile Networks called Data enabled/disabled, which is a much direct approach than changing the APN.But up to today, I've yet to see a widget which targets at this option. Currently I hv made a 3G shortcut to that setting page on to my home screen. Really hope there will be a toggle widget instead!So how do u guys enable/disable data usage at the moment without a handy widget on Froyo?

I want to control the system settings "auto brightness", setting it ON or OFF.I'm able to control the brightness level but only if AUTO is OFF. From what I read until now there is a SCREEN_BRIGHTNESS_MODE in Settings.System but only for API level 8 or higher and also not recommended to mess wit it. But currently my phone has Android 2.1 (API 7) and there are widgets that can control this setting (enable/disable auto brightness and set the level). How is this done?

I try to find a way to disable the PatternLock screen temporary. I don't want the lock to be disabled completely, but the user should not need to re-enter his pattern all the time.

My idea is to write a service which disables the pattern after some user activity and re-enables it after a while. (and even more)

There are apps on the market that do something like that (i.e. AutoLock or TogglePattern), so there must be a solution ;)

I know that I can prevent a lock completely by using:getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)or KeyguardLock.disableKeyguard()

But that is not what I'm after.

I saw the class "com.android.internal.widget.LockPatternUtils" in the android sources which is used by the settings activity, but this class is not (at least as far as I know) accessible for a "normal" application.

I have a requirement where i need to disable the widget on some intent, i.e., I have the remove the widget from the android home screen and remove from menu options so that the user cannot add the widget further.

I have to enable the widget on some intent, so that, the framework automatically adds the widget to the home screen, by calculating the empty position available on the home screen, and the many option re-appears in order to add the widget further.

Quick question.. is there a way to enable spell check, but disable the who correct?? the auto correct is extremely annoying when it changes words on you. how ever id like it to tell me if i miss spelled a word..

like i tried to write DL (down load) and it auto changed it to florida.. or i went to type Mo Williams, and auto changed to Month Williams.

i came from a storm and the storm would underline miss spelled words but not auto correct it.

i played around with all the settings.. cant get it to just spell check with out auto correction.. are there any apps?

My definition/expectation of a 'notification' is a graphic/text message with the option to enable/disable a sound to alert me that the notification came in per app.

I want to:

1- enable/disable graphic/text per app

2- enable/disable sound per app

For #1, it looks like I have to go Setting>App Manager>All>Uncheck 'show notifications'. But, apparently that will disable everything...ie, no graphic/text or sound. I've tried lock screen and notification apps without luck so far......

Wouldn't it be cool if I could tell my phone to switch wifi on and switch 3g reception off when it senses that I am at work or home based on my gps coordinates and then reverse that when I'm on the road i.e. not at those coordinates I set. Is there an app that does this?