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.

Android :: Enable / Disable USB / Wifi tethering programmatically


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

General :: Enable WiFi Tethering If Not In ROM / Android 4.1.1

Mar 24, 2013

I have PIPO M8 3G tablet running on Android 4.1.1, the problem is that Tethering and Portable hotspot are missing from the menu.

Is there any way to enable tethering if it's not in the ROM?

The device is ROOTED.It also cannot make phone calls and send SMS is there a way to enable them too?

View 2 Replies View Related

Motorola Droid :: How To Enable Wifi Tethering?

Aug 1, 2010

I am rooted running froyo. I cannot figure out how to enable the wifi tethering. Can someone run me through this step by step. I have the wifi widget loaded onto my phone but cannot figure it out from there. Is there something I have to do to my laptop. Please run the step as if you were teaching a 3 year old.

View 1 Replies View Related

Android :: Setting State Of Enable Flag For WiFi Hotspot Tethering In Froyo2.2

Jun 17, 2010

I am wanting to programmaticaly set the state of the enable flag for WiFi Hotspot Tethering in Froyo. Something like this:

boolean isEnabled = Settings.System.getInt(context.getContentResolver(),
Settings.System.SOME_WIFI_TETHER_FLAG, 0) == 1;
// toggle HOTSPOT mode
Settings.System.putInt(context.getContentResolver(),
Settings.System.SOME_WIFI_TETHER_FLAG_ON, isEnabled ? 0 : 1);
// Post an intent to reload
Intent intent = new Intent(Intent.SOME_WIFI_TETHER_FLAG_CHANGED);
intent.putExtra("state", !isEnabled);
sendBroadcast(intent);

Is there a programmatic flag for turning off wifi hotspot mode in 2.2 from Settings.System class?

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

Motorola Droid X :: Enable Froyo's Built-in WiFi/USB Tethering

Aug 23, 2010

Can it be done? Obviously Verizon and Motorola have disabled it because they want us to pay $20/month for the Verizon app. Yeah, sure Verizon. Anyways, if it requires a custom ROM to enable, then we're SOL until someone breaks the bootloader encryption or we have to use the free WiFi Tether for Root Users app which only supports Ad-hoc mode and WEP encryption, which basically is the same as no encryption really.

View 8 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 :: 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.

View 2 Replies View Related

Android :: Any Way To Enable GPS Programmatically?

Jul 22, 2009

I was wondering if there is a way of enabling the GPS programmatically through an application without going to the menu Settings > Security & location > Enable GPS satellites. Please let me know if there is a way, I've seen this asked a million times in this group but there are never any replies.

View 2 Replies View Related

Android :: How To Programmatically Enable GPS In Cupcake

Jun 26, 2009

I'm currently writing an app in Android that works with the GPS, at the moment I'm able to work out whether the GPS is enabled, my problem is that I want to enable the GPS on app startup if it is disabled, how can I do this programmaticaly?

View 4 Replies View Related

Android :: How Can Enable Settings Programmatically?

Feb 26, 2009

I would like to enable Security & Location settings programmatically. Can any one please suggest me how to do this?

View 2 Replies View Related

Android :: Enable Usb Debugging Programmatically From Within App

Aug 11, 2010

Is it possible to enable usb debugging (under settings/applications/development) programatically from within my app? I was looking at Permission.WRITE_SETTINGS and http://developer.android.com/reference/android/provider/Settings.System.html but couldn't find anything appropriate.

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

Android :: Programmatically Find IP Address Of The Desktop Over USB Tethering

Aug 31, 2010

Is there a way to find the IP address of the desktop machine connected the android phone after USB tethering is turned on? Does android assign a fixed IP address to the desktop? Or does it assign a dynamic address (dhcp)? Is there a PPP connection created between the phone and machine?

View 2 Replies View Related

Android :: How To Disable SMS Notification Programmatically

Feb 15, 2010

This not work. code...

Error: "Attempt to read preferences file /data/data/com.android.mms/shared_prefs/com.android.mms_preferences.xml without permission".

View 2 Replies View Related

Android :: Programmatically Disable Idle Mode

Jul 30, 2010

I am currently searching to set out an issue I encounter. I am developing an Application on Android which have to download a lot of data and then be unused for a while.

During the download, the device is locked and switch to a kind of idle mode that close the wifi connection. I don't find out anything about it so I need your precious help.

I would want to programmatically disable this idle mode. Is it possible, what sould I do for it?

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

Android : Disable Scrolling Touch Events In ScrollView Programmatically?

Aug 10, 2009

Just wondering if there is an easier way to simply stop ScrollView from being scrolled via touch inputs? I will programmatically get the ScrollView to scroll to top or bottom.

As a last resort, I guess I will have to inherit from ScrollView and capture all the ontouch events. But wondering if there is an easier way before I take this approach?

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







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