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
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
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
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
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
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
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
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
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
Feb 22, 2010
I have a small issue. Is it possible to enable or disable HSDPA connection programatically in Andoird? If so, how to do that? I didnt find any API in Telephony Manager.
View 1 Replies
View Related
Nov 21, 2010
i'm currently setting the alarm via the following.. //set the alarm alarm.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pendingintent); i don't seem to see an AlarmManager method that allows me to get the time of that set alarm... Is there a way to do it from somewhere else in my app?
View 1 Replies
View Related
Feb 3, 2009
Given a widget and a int that references a style (defined in my res/ values/style.xml), what is the 'correct' way to programmatically apply the style to the widget?
Up until now I've been hacking this by...
CODE:..................
View 5 Replies
View Related
Apr 14, 2010
Also wondering if anyone knows how to print to a PDF programmatically in Android.
View 2 Replies
View Related
Jul 11, 2010
So I read the xml tricks 2 from developer.android.com, and it worked for me. But I need to programmatically include 1 xml into another. addview returns
07-12 01:01:18.429: ERROR/AndroidRuntime(267): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 07-12 01:01:18.429: ERROR/AndroidRuntime(267): at android.view.ViewGroup.addViewInner(ViewGroup.java:1970)
((ViewGroup) placeHolderProductList).addView(productList, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)) ;
View 4 Replies
View Related
Oct 4, 2010
I red in these discussion groups that you cannot programmatically turn on/off the GPS : Mark Murphy was exhaustive, as always. But i found a 3rd party App, in the market, that creates a widget capable of switching the GPS on/off. How did they do it? Are they using a different SDK ?
View 5 Replies
View Related
Sep 5, 2010
On Sun, Sep 5, 2010 at 12:55 PM, Vipul <vipulpancha...@gmail.com> wrote: > I want to get the name of device programmatically. > Suppose anyone has set the device name as "My New Phone"> I want to get that.
View 3 Replies
View Related
Aug 7, 2009
i have a requirement to place 2 overlapping image view inside a web view.the upper image view can be moved using trackball and the lower image view is static.now i want to capture the whole screen programmatically and save it as an image.i have referred this link but unable to get the solution.
View 2 Replies
View Related
May 24, 2010
I was hoping to write a service on Android that would list all applications installed as per previous post.Then, It would decide to update automatically some apps and install others. Is there any class on the SDK that has this kind of functionality? That is, can I call some API or code to install an application on the phone? Can I force some updates as well?
View 3 Replies
View Related
Apr 18, 2010
I am trying to set speakerphone on in a call programmatically using audiomanager.setSpeakerphoneOn(true) in a service but it seems it is not working and I don't know why. Should I do something else?
View 1 Replies
View Related
May 30, 2010
I am trying to improve the layout for my game. The problem is that while I can create a good layout for one android phone, it doesn't work for another, ie the trackball for MyTouch is on the right side (landscape mode), but for the MyCliq, the DPad is on the left side. Is there a way to programmatically set the layout based on which phone it is?
View 2 Replies
View Related
Aug 17, 2010
I am trying to retrieve the current API Version of the device my Application is Running. Is there a way i can get that and Store it on a String. This needs to Work on 1.5 Version and Up.
View 2 Replies
View Related
Nov 1, 2010
I'm trying to create table row and place 3 elements: EditText - EditText - ImageButton as following:................
View 2 Replies
View Related
Jun 15, 2009
Can we change the apn settings programmatically?
View 2 Replies
View Related
Mar 31, 2009
I would like to dynamically build a view that would display a certain number of 'rows'. Here is a piece of code I wrote, but it is not working:
CODE:..............
View 2 Replies
View Related
Sep 11, 2010
In an Android application I am writing, the styling for my various TextView elements is defined in an xml resource. I would like enable the user to change certain styles such as android:typeface using a PreferenceActivity. Is there a way to modify a style resource programmatically such that all associated widgets will update correctly? If not, must I manually select all widgets by id and change their styling?
View 1 Replies
View Related
Sep 7, 2010
i am trying to open lock in my app i think pressing menu key by code will do that but i dont know how to do this. so can anybody guide me for that.
View 4 Replies
View Related
Jul 28, 2009
i want to trigger the onKeyDown listener programmatically but don't know which method i should call? Does anyone know?
View 3 Replies
View Related
Aug 5, 2010
I'm trying to write some functional tests for my application that include interactions with the UI. As part of the test I'm trying to press a button programmatically. I've both tried TouchUtils.clickView() and Robotium (third party's utility for this task). But buttons don't get pressed. With Robotium, whose sources are simpler to understand, I can track my code until it properly generates ACTION_DOWN and ACTION_UP events. At the same time, I've tried a Robotium sample together with a small sample application, and it works perfectly. So, Robotium works and my Android SDK is ok.it must be something specific of my application. What should I check?
View 6 Replies
View Related
Dec 23, 2009
About custom Power Management... Is it allow for my app to dim the screen programmatically??, the goal would be to send the phone sleeping when a Intent.ACTION_BATTERY_CHANGED event is handled by a BroadcastReceiver, just like its done automatically by the OS (if so configured) after x time of inactivity.
View 2 Replies
View Related
Sep 15, 2009
how do I programmatically turn on/off WIFI?
Currently I'm having something like this:
CODE:..........
Where _iWifi is a button instant (of course...)
Now, the problem is that it tells me there is a Security Exception occurred, I guess I have no permission to access this.
I'm sure a firmware key is not needed in this case (unlike my previous question regarding reboot action), so what is the proper way of doing this?
View 11 Replies
View Related