Android :: How To Disable - Enable Network - Switch To Wifi In Android Emulator

Jun 9, 2010

I'm working on a Push Notifications library for Android (http://deaconproject.org/) that needs to take action if network connectivity is interrupted or changed - namely, it needs to re-initiate a server connection or pause its operation until network connectivity is available. This seems to work fine using and Android BroadcastReceiver for "android.net.ConnectivityManager.CONNECTIVITY_ACTION".

My problem is in testing the library - I would like to automatically test the library's response to a broken network connection, or a transition from 3G to WiFi, under various configuration conditions. The problem is, I don't want to sit with the emulator and hit F8 all day.

Is there a way to programmatically manipulate network connections on Android from within a jUnit test without resorting to toggling Airplane Mode? I've already tried issuing commands to the emulator via the console, manipulating the GSM mode, etc, but while the phone state changes on the display, the Internet connection remains up.

ADVERTISEMENT

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

HTC Aria :: Disable Application Syncing And Mobile Network From Hold Menu Can Connect To Home Wifi Network

Oct 4, 2010

I love my aria, i got it 9/29/10, for free from best buy because my contract expired... but ive already used 20MB and i only bought a 200MB plan... i might go to 2 gigs, but for an alternate, since my billing cycle ends the 28th of every month... if i disable application syncing, and mobile network from the hold menu... can i connect to my home wifi network, and go on the internet from there without that using any of my data plan?

View 5 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 :: 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

HTC Magic :: One Click Apps To Enable / Disable Wifi And Bluetooth?

Aug 2, 2009

Is there one click apps to enable/disable wifi, and bluetooth?

View 5 Replies View Related

Nexus :: App That Disable Wifi/enable 3g Reception Based On Gps Location

Jan 20, 2010

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?

View 5 Replies View Related

Android :: No Phone Signal In Emulator 2.1 - Disable Network Connections

Apr 30, 2010

I only get a phone signal about a third of the times i start the emulator. I've read on these groups that you have to have an internet connection before starting the emulator. Since i'm connected to the internet 24/7 :) this is not the problem I've also read somewhere that you should try do disable all other network connections (which i've done) and the problem persists. I'm using Windows 7 and Android 2.1 + API's emulator. You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

View 2 Replies View Related

General :: Disable Mobile Network When WiFi Connected

Mar 4, 2010

I am looking for an app that automatically switches off the cellular radio when wifi is connected and switches it back on when wifi loses connection. I'm not talking about the APN data connection which already does that, I'm talking about the regular cell phone connection.

According to my lack of results searching through the forums, Market, and Google, such an app does not exist yet. Currently the best app I've found to do anything remotely like this is the Airplane Mode Wi-Fi app, which is a manual switch and a slightly cumbersome one at that, not nearly good enough for how often I go in and out of wifi.

The reason I ask for this is because I use Google Voice with SIP and a prepaid plan. I want to use SIP as much as possible to save my prepaid minutes for when I really need them. When wifi and cell are both connected with Sipdroid running and I receive a call, they both ring at the same time. To be sure I don't accidentally use prepaid, I usually reject the call and call back over SIP, which is slightly annoying for both me and the caller.

View 9 Replies View Related

General :: Galaxy S3 - Disable (Connected To WiFi Network) Notification

Jun 11, 2013

I have a Galaxy S3 on the Bell Mobile network in Canada, and aside from the horrendous battery life, it's a pretty good phone. One thing I notice that's kinda annoying is the "Connected to Wi-Fi network [network name]" pop-up that comes up quite often. I've managed to snap a screenshot of it.

How to disable this? The only info I've found so far is on the Verizon pop-ups, and entering the *#6335623# code on the dial screen, but nothing comes up when I try that, and I'm not even sure that fix would work for this.

View 13 Replies View Related

Android :: App Works On WiFi In Debug Mode Or On Emulator Not On Cell Network

Jul 9, 2010

I have an android application that parses some HTML, downloads an image, and displays it. I'm using an AsyncTask to do the HTML parsing and image downloading, but that shouldn't be relevant. I never have a problem when I'm on WiFi on my phone, when I'm using the Eclipse debugger on my phone, or when I'm using the emulator. When I have my phone on the cell network (even with pretty good reception), the image sometimes fails to display. I'm having a hard time figuring out what is wrong, since the problem cannot be reproduced in the debugger. Does anyone have any idea what could be wrong?

Update: I have narrowed it down to the image downloading function. This way my original code:.......................

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

HTC EVO 4G :: Usb Debugger - Enable Or Disable

Oct 6, 2010

How would u enable or disable the ish debugger.

View 1 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

HTC Incredible :: Enable / Disable Buttons

Jun 21, 2010

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?

View 3 Replies View Related

General :: Easy Way To Enable / Disable PIN

Mar 27, 2012

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.

View 2 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

HTC Magic :: Any Way To Enable / Disable APN Added To Phone?

Jul 13, 2009

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

View 9 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 :: 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?

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 :: 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

General :: Enable / Disable Action Bar Icons?

Sep 26, 2012

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?

View 4 Replies View Related

Android :: Enable GPS / Network Location Programmatically

May 3, 2010

I'd like to write a simple widget that toggles GPS and network location on and off. I've read that it's not possible to do that normally, but presumably on a rooted phone it must be doable. Does anyone know what the code would be? (I only need the code to toggle the location providers, I know how to make the widget.) It doesn't matter that this isn't a 'good' solution, I don't plan to distribute the widget. If it matters, this would be on an HTC Hero, still running v1.5.

View 1 Replies View Related

HTC Droid Eris :: Enable Always On Mobile Network

Jul 5, 2010

I just thought I would mention unchecking this option causes pandora to stop playing after ever doing when the phone is locked.

View 5 Replies View Related

Android :: Enable Sound In Emulator?

Aug 13, 2010

how to enable sound in android emulator .i am using fedora 13 .

View 3 Replies View Related

Sony Ericsson Xperia X10 :: Enable / Disable APN Settings

Aug 26, 2010

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.

View 3 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

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

Samsung Galaxy I7500 :: Cannot Enable And Disable Root

Apr 7, 2010

I just installed recovery 5.0 and galaxo 1.6.2 rom. But when I enable or disable the root in recovery mode, an error message is displayed - "error enabling su !" or "error disabling su !" .

View 7 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

HTC Incredible :: App To Enable Spell Check But Disable Who Correct?

May 1, 2010

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?

View 6 Replies View Related

KitKat 4.4 :: Enable / Disable Sound To Alert That Notification Came In?

May 27, 2014

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

View 4 Replies View Related

Jelly Bean :: Android 4.3 - Restricted Profiles - Disable WiFi Entirely / Turn Off WiFi

Sep 24, 2013

I don't own an Android 4.3 tablet yet but I need to know the following things.I wanted to restrict my device so that a user is unable to change any settings (in particular turn on/off WiFi) and disable all applications except one.How strict is the restriction?

If I disable all apps except one what will the restricted user be able to do?

In an ideal scenario I'd like the restricted user to do only 3 things:

a) turn the tablet on/off

b) turn the application of my choosing on/off

c) all other options would be disabled

d) the restricted user should NOT see any data of the administrator

View 2 Replies View Related

Samsung Captivate :: Any Toggle Switch To Disable 3G?

Jul 25, 2010

I have an AT&T Captivate with a 200 MB data plan. I want to have an easy toggle switch to disable any data transfer that counts toward that 200 MB. So far I've only done mild browsing/email and navigation off wireless, yet I've already used 67 Mb in 4-5 days. Anybody else having similar experiences?

I've tried the APNDroid widget set to "Red", but when I disable Wifi, the 3G icon pops right up in the notification bar and 3G seems to work normally. I've also tried the JuiceDefender "Toggle Mobile Data" and tapped it to make it yellow "ON", and again the 3G pops up when I disable WiFi. Anybody having any luck disabling 3G? Also, it would be nice to still get push gmail, which seems like it wouldn't using much data.

View 18 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

Motorola Droid X :: Disable Nuance And Enable Froyo Bluetooth VAD

Aug 20, 2010

I know Motorola loaded Nuance's VAD application since they decided to launch with 2.1 vs 2.2, however, how that 2.2 is out, how do we get rid of it? The Nuance app is barely functional at best, and is far surpassed by the quality/features of the Froyo voice app, which from what I remember, supports Bluetooth now. So how do we get it off of there?

View 2 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

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

Sprint HTC Hero :: Enable / Disable Vibrate For Phone - Notifications?

Apr 24, 2010

Is there a simple way to enable / disable vibrate for the phone / notifications? I tried using the volume rocker, going to vibrate there. That works for the ringers, but not notifications. I mainly want to set / unset vibrate for gmail and Google Voice. I have tried various 3rd party apps like Volume Control / Audio Manager, but nothing seems to work consistently.

View 2 Replies View Related

Sprint HTC Hero : Disable/enable Phone Vibration On Click

Dec 6, 2009

I have a Sprint HTC Hero w/ 1.5 (Nov 18 update). Can someone please share how to disable phone vibration when we dial a number? Also, I am using Handscent SMS, can you please also share how to enable phone vibration when writing a text message?

View 1 Replies View Related

ADVERTISEMENT