Android :: API To Enable / Disable Mobile Data

May 20, 2010

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?

Android :: API to enable / disable mobile data


HTC Droid Eris :: Always Enable Mobile Data Function Causes Data Leakage?

Aug 21, 2010

Can anyone help explain what this does? I did a small search around the internet, and it came up with just about nothing.My first question is: I turned mobile data off, and yet, during the night, I was charged for data, so something leaked.Personally, I thought if this was because of this particular function. But maybe it was something else.So, I turned it off, but around the forums for other androids people seem to think that syncing doesn't work as well with this disabled.Does anybody know what might have happened? And could this function have been the thing that caused the leak.The leak, was actually for only 50 KB or so, but because I'm on Page Plus, it caused me to go under the required balance to refill of $29.95 and caused my plan to lapse. It's important for me for this not to happen again. Can anyone give any tips?

View 2 Replies View Related

Android :: Shortcut - Disable And Enable DATA 2g 3g

Jun 28, 2010

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).

View 16 Replies View Related

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.

View 3 Replies View Related

Android :: Enable/Disable Auto Sync And Background Data

Apr 20, 2009

I want to develop an application that disable the Background Data (new feature in Android 1.5) and Auto Sync and then enable GPRS/EDGE connection and vice versa.

I figured out how to enable/disable GPRS/EDGE by changing the APN settings. (weird solution. However; Android developers couldn't think a user may want to disable GPRS/EDGE) But, I couldn't find a way to enable/disable Auto Sync and Background data.

I investigated the Android code and as I understood, the Sync operation is an intend. So, I wanted to reach with putExtra to the intend and trigger the enabling/disabling. But; I couldn't find the correct keyword.

View 2 Replies View Related

Nexus :: Any Data Enable / Disable Widget For Froyo?

Jun 5, 2010

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?

View 18 Replies View Related

HTC Desire :: Enable Always On Mobile Data

Sep 5, 2010

A freind of mine recommend that I uncheck this. He said it saves battery life as it isnt always checking the net but everything still works fine. Is this right?

View 3 Replies View Related

General :: Automatically Enable / Disable 3G Data Connection On Dual Sim Phone

Jan 20, 2014

Principally to save battery charge, i need to find an application or a method that automatically shut down data connection when i lock the screen and resume it when i unlock the screen.

I've tried many of the most popular software that do this, but, with dual sim phone, they are able to shut down data connection but not to startup.

View 9 Replies View Related

Android :: How To Disable Mobile Data?

Sep 4, 2010

I just got an EVO and it chews through the battery fairly quick. I downloaded JuiceDefender to manage my mobile data connection. That seems have worked out fairly well. However, the settings are just very restricted (even on the paid versions).As of right now I am trying to develop a much more customizable battery saving application. The main thing I am trying to do first be able to enable/disable the mobile data connection at will.The problem is I can't find any code snippets or articles on how to do this. The only thing I have found is the following. I don't know how accurate this is, but this was all I could piece together browsing developer.android.com.Looking at the phone info when JuiceDefender is running, I found that the GSRP network is getting turned on and off. This leaves me to believe it is possible to do it through code even though every page I find asking about this same issue says it cannot be done. The kicker is they all say to do it like APNDroid. Please someone give me some insight.

View 1 Replies View Related

General :: Auto Restrict Background Data And Disable Auto-sync When Mobile Data Enabled

Aug 24, 2013

I'm trying to limit my mobile data usage with out jumping through hoops.

I'm looking for a widget, that with one click of a button, it can restrict background data, disable auto-sync and enable mobile data, and when pressed again, enable WiFi, disable background restriction and enable auto-sync.

This function, no matter how trivial, would save time and effort.

Is there anything like this out there? Would something like this require root?

Galaxy Nexus

View 5 Replies View Related

General :: Disable Data Access Over Mobile Network By Default?

Aug 29, 2012

At the first loading of flashed rom checkbox "Data Allowed" in the Mobile Network Settings ENABLED by default.

I do not use unlimited Internet therefore.

I need some flashable patch update.zip which I can flash after the rom for switching this option to DISABLE.

It is Really? Where android save this setting?

View 5 Replies View Related

HTC Incredible :: App (free Or Paid) To Disable Mobile Data While Screen Turned Off?

Aug 25, 2010

I'm looking for an app (free or paid) that will disable mobile data while my screen is turned off.

View 2 Replies View Related

HTC Desire HD :: Allowance / "Enable Always On Mobile Data"?

Oct 20, 2010

So this is the first time I've had a phone with internet,i'm looking at the settings for mobile network. "Enable always-on mobile data" is ticked,?does that means in the backgorund 3g is always running to check for new gmail, or facebook notifications, etc etc, should I turn this off to use less data allowance. I'm okay when I'm home because it will connect to my wi-fi. There is an option for "data roaming" which is off. what is this? Network mode set to GSM/WCDMA auto? So about this,just want more info so I my phone doesn't get the better of me.

View 34 Replies View Related

Android :: Disable / Enable 3G Programmatically?

Jul 29, 2009

I'm trying to code an app for android that needs to enable and disable 3G (move between 2g and 3g), but can't find anything about it...is that possible? Can I get a snippet code or some documentation?

View 2 Replies View Related

Android :: How To Enable / Disable Bluetooth Programmatically?

Sep 27, 2010

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.?

View 1 Replies View Related

Android :: How To Disable / Enable That Gps Locator Thing?

Mar 9, 2010

Does anyone know how to disable and enable the option the t mobile google g1 that tracks where you are and shows your location?

View 1 Replies View Related

Android :: Enable/Disable Networking In Emulator

Sep 22, 2009

According to the emulator docs, you should be able to enable/disable networking with the F8 key. I doesn't work for me and I'm trying to determine why.

I'm developing on OSX Leopard. I've also tried in a virtual Windows instance (Windows 2008 server running in Parallels). No luck in either case.

I've tried the obvious stuff like fn + F8, etc.

Should there be any sort of visual cue that networking has gone online or offline when F8 is pressed?

View 2 Replies View Related

Android :: Enable/disable GPS And Wifi Providers?

May 29, 2009

How do I enable/disable GPS and Wifi providers? I check to see if they are enabled by using this code:

locationManager.isProviderEnabled("gps") locationManager.isProviderEnabled("network")

If both are false, I'd like to turn enable the GPS provider and/or the Network provider so that the above checks would return true. Is this possible? If so, what permissions does it require?

View 5 Replies View Related

Android :: Disable / Enable Orientation Changes At Runtime?

Sep 21, 2010

Is there a way to enable / disable orientation changes at runtime?

i know you can force a screen orientation in your manifest using android:screenOrientation="portrait" or ="landscape"

but I would like a way to enable / disable it at runtime.

View 2 Replies View Related

Android :: How To Enable / Disable Access Point Network (APN)?

Jun 22, 2009

How to enable/disable Access Point Network (APN)?

View 2 Replies View Related

Android :: Enable / Disable USB / Wifi Tethering Programmatically

Aug 20, 2010

Is there a way to enable or disable tethering (USB or wifi) on an android phone programmatically? Perhaps an API in android SDK or NDK or any even non-UI command to do that.

View 1 Replies View Related

Android :: Enable / Disable Auto Brightness Mode From API?

Oct 18, 2010

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?

View 1 Replies View Related

Android :: Enable / Disable PatternLock Screen From Code

Feb 3, 2010

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.

Do you have an advice?

View 2 Replies View Related

Android :: Disable Conversation And Enable Classic Sms Mode?

Dec 25, 2009

I'm using Android 1.6 with its standard sms software.

Unfortunately everytime I send or receive a sms, the message is put into a conversation.

How can I disable this conversation mode and enable the classic sms mode?

View 6 Replies View Related

Android :: Enable / Disable Droid Widgets Runtime?

Sep 23, 2009

I am writing an widget application for android.

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.

Please let me know if this can be possible..

View 3 Replies View Related

Android :: How To Enable Mobile Network?

May 14, 2010

In my application it is necessary to have internet connection. Therefore i check while starting if a Internet connection is available. If not I ask the user if he would establish an Internet Connection, and what type (wifi oder mobile). The wifi connection i can establish with the following code WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wifiManager.setWifiEnabled(true); But how do i establish a mobile connection? Couldn't find a single code snippet at Google.

View 1 Replies View Related

Android :: Programmatically Disable / Enable Notification Led On Phone Device?

Jul 22, 2010

Is it possible to programmatically disable and enable the led indicator light on an Android device? I am not referring to just turning it on and off as in a notification. I did not see anything in the api that would do so. I am guessing this is hardware specific if it is possible at all.

View 1 Replies View Related

Android : Application Use Of Haptics - When To Enable / Disable - Minimizing Confusion

Dec 11, 2009

Is there a general guideline for application developers about when to disable haptic responses? I know there are ways to enable/disable long-press haptics, but if an application was created to use haptic feedback for other events are there guidelines that application developers should follow? For example, if the user was to go into Settings->Sound & display -> Haptic and set that to OFF, should all applications refer to this setting as a rule of thumb?

From and end user point of view, I would like to have global control of haptic feedback especially if I find it to be annoying. I have seen several postings in the android forums looking for a "global override" to haptic responses. Ultimately, I think it is a question of should each application provide a menu to enable/disable haptic support, or should this be more of a global Setting for the device.

I personally feel applications should refer to the global setting, but would like to get feedback from other developers about this. Reference postings I was referring to: http://www.droidforums.net/forum/droid-general-discussions/6812-hapti... http://androidforums.com/samsung-moment/13633-how-do-you-disable-vibr.

View 2 Replies View Related

Android : Check Value To Disable / Enable Context Menu Item?

Aug 27, 2009

In my application has a ListView. When long press on item the "Context Menu" will appear. I want to check the data ID, then set disable/enable to my Context Menu "Items". I can not find out the function like getMenuInfo() or something like this.

@Override
public void onCreateContextMenu(ContextMenu menu , View v, ContextMenuInfo menuInfo)
{ super.onCreateContextMenu(menu, v, menuInfo);
menu.add(0, ADD_FAVORITE_ID, 0, "Check");
menu.add(0, ADD_FAVORITE_ID, 0, "UnCheck").setEnabled(false);}

View 1 Replies View Related

HTC Eris :: Enable Or Disable JIT On ROM?

Jul 30, 2010

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.prop
then edit the line:
dalvik.vm.execution-mode=int:jit
to say:
dalvik.vm.execution-mode=int:fast
and 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.

2. Use adb commands, connect phone via USB.
adb remount
abd pull /system/build.prop build.prop
On your PC find this in your c:"androidsdkdirecotryhere"
ools and edit with your favorite text editor.
then save the file, and go back to your cmd window and type
adb remount
abd pull /system/build.prop build.prop

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved