Android :: Android Get Location / Prompt To Enable Location Service If Disabled

Aug 12, 2010

I've found bits and pieces of this answer scattered through other posts, but I wanted to record it here for others.How can I simply request the user's GPS and/or Network location and, if they haven't enabled the service, prompt them to do so?

Android :: Android get location / prompt to enable location service if disabled


Android :: Override Enable Location In My Location Overlay

Mar 4, 2010

I want to override the method enableMyLocation() in MyLocationOverlay class, in order to implement my own positioning algorithm to get latitude/longitude, and then plot them onto a MapView. I figured out how to do that, but now I'm stuck because I dont know what Canvas to pass when I call the method drawMyLocation().
Here is the MyLocationOverlay class

View 4 Replies View Related

HTC EVO 4G :: Google.com Wants To Know Your Location Prompt

Aug 3, 2010

I get this prompt whenever I open Dolphin Browser HD and I always have to select "Share location." Is there any reason why it keeps prompting? I have it set to where it saves my location. It never used to do this on 2.1

View 2 Replies View Related

HTC Incredible :: Google Wants To Know Your Location (Prompt)

Aug 9, 2010

I found this post:
http://androidforums.com/support-troubleshooting-evo-4g/142216-google-com-wants-know-your-location-prompt.html
In the EVO 4G section and I'm having the same issue with my Incredible. For the past couple of days every time I go to google.com I receive this prompt

This happens using the native browser or using Dolphin browser. All my location settings are set to allow sites to use my location (in the phone options and all browser options). I get the prompt both when I am logged into google and when I am logged out. I've even checked my google account settings "save recent locations" is set as On and "allow use of device location" is set to YES. No matter what combination of options I select within the prompt, it comes back every time I go to google.com. I've rebooted and even pulled out the battery and nothing changes. GPS on or off has no effect and clearing out my caches hasn't changed it either. My phone is stock except for being rooted.

View 9 Replies View Related

General :: Download Service Disabled - How To Enable

Mar 23, 2013

I disabled the download service, which mean that every single app that use a download (ex chrome, play store, ecc) crashes. How can i enable it again without restoring the phone?

View 3 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 :: Location Manager Minimum Update Time Overridden / When Location Changes?

Oct 26, 2010

I'm developing a mapping app using Eclipse 3.5.I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.When I actually send a new location from the DDMS emulator control and the location changes on the map view, I see that the system process then sets the minimum time to zero.Below is a capture of the system's log messages. You can see that I'm setting the period to 32 seconds, then 16, then, after I've sent a simulated location change the system sets it to zero.The map responds to location changes to location changes instantly even if they are sent only a couple of seconds apart.

View 1 Replies View Related

Android :: Way To Get GPS Location Without Service?

Jul 6, 2010

I am a new developer and have a simple question that I have searched all over for, but have not found a clear answer yet. Simply put, I am developing an application that needs to be able to use GPS. The trick is however that I would like to use GPS to get a phone's location even if they have no carrier service. With that said I have 2 questions. Is is possible to get the GPS location of a phone with no carrier service with a wifi connection?
Is is possible to get the GPS location of a phone with no carrier service AND no wifi service?

View 2 Replies View Related

Android :: Location Manager Does Not Detect Location Correctly

Sep 17, 2010

In my application I have to fetch the current location. First it correctly fetches the location. But we are moving from the current location to some other location. It shows the previous address. It is not updating the location. My code is: locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locListener = new MyLocationListener();locManager.requestLocationUpdates(LocationManager .GPS_PROVIDER ,0,0,locListener); location = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);if(location != null){latitude = location.getLatitude();longitude = location.getLongitude();} Please find the mistake and when i launch first time it is not working on second time itself it is working so check this thing also.

View 1 Replies View Related

Android :: Testing Location Using Network As Location Provider?

Jan 27, 2010

I have an application which uses the network as the location provider (rather than GPS eg.), however I can't seem to figure out how to send the emulator test coordinates. In DDMS I would usually send coordinates in the Emulator Control tab.Is there a place to simulate coordinates derived from the cell phone network provider?

View 6 Replies View Related

Android :: Cannot Get My Location To Work - Service Not Available

Sep 5, 2010

My app which was working on 2.1 and earlier version fails to run properly in 2.2. It relies on the location but I do not get any error message. However under DDMS /logCat, I see a message saying: Error message while getting the location address: Reason: this service is not available. This is coming more as an information message rather than an exception or error. The process that is printing it out is System.out. Note that I did everything possible ( I can think of) to upgrade the app to run in android 2.2. The API version was changed to 8.

The manifest file contains all the following:-
<uses-library android:name=*"com.google.android.maps"*/>
</application> <uses-sdk android:minSdkVersion=*"8"* />
<uses-permission android:name=*"android.permission.INTERNET"*/>
<uses-permission android:name=*"android.permission.ACCESS_FINE_LOCATION"* />
<uses-permission android:name=*"android.permission.ACCESS_COARSE_LOCATION"* />

View 5 Replies View Related

Android :: How To Stop Location Manager Service?

Jul 2, 2009

I have a location manager: mLocationManager01 = (LocationManager)getSystemService (Context.LOCATION_SERVICE); because i want to stop the gps service, but when i use mLocationManager01.removeUpdates(mLocationListener01); that's not working to stop gps. how can i stop it?

View 4 Replies View Related

Android :: Way To Get Quick Location Fix In Alarm Service?

Mar 14, 2010

I was wondering about the following scenario: I have an application that periodically needs to do some stuff, and at first I found that starting it as an alarm service was a neat way conserving resources AND being sure that the service would execute. However, my service also needs to know the location of the device, and I found that using getLastKnownLocation does not suffice as the location tends to be drastically outdated. I then tried adding a location listener, and requested location updates as frequently as possible, but then it could still take minutes before any location event was fired. So, now I have it running as a standard background service but I really don't like that approach. Is it possible to force a location fix within limited given that the circumstances enable acquiring a fix at all?

View 5 Replies View Related

Android :: Location Provider / Coarse Location

Jun 25, 2009

The way we are retrieving locations from our Android phones is to 1st get a Coarse Location followed by a Fine Location. This is for the case where the user may be inside a building initially and unable to track satellites. After we get our coarse location we transition to a fine location to track satellites. This method has been working fine for several months. We recently upgraded to 1.5 and our mapping application, to my recollection continued to work.For the past couple of days we have not been able to get a coarse location and we are receiving a status message in the onStatusChange callback of.We have re- installed previous versions our code that used 1.1 and we are receiving the same status message of .TEMPORARILY_UNAVAILABLE. Other than the obvious description of the constant, we can find no meaningful information.

View 2 Replies View Related

Android :: Way To Create Service To Report Location All Time?

Mar 23, 2010

I want to create a service that runs on Android which can collect all of my location information. Either write the information to a file or send to a server using 3G/wiki network. I was thinking about using a service that runs forever as a daemon. After reading "Diamonds are forever, services are not" by Mark Murphy, I realized that it is not a good idea. However, I need to somehow acquire the moving trajectory information on the Android phone. Without a daemon service running forever, how do I do that ?

View 4 Replies View Related

General :: Access Log Of Fused Location Service Of Android

Sep 16, 2013

Log file that show you the name of the app and time when they accessed a location service ? Or maybe there is already an app who are up to date on this thing.

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

General :: Devices Reporting Wrong Location After Location Spoofing

Mar 15, 2013

Recently all my android devices think they are in Spain when I am at home in Toronto.

I think this was caused when I ran a location spoofing program on only one of my devices, one of the locations I set it to was Spain (among others).

I've tried clearing the data for the Network Location apps, changing the SSID on my router with no luck.

The only way it shows the correct location is when I go outside and run Google maps long enough to get a GPS fix. But when I go back inside I am back in Spain!

The devices this is affectingGalaxy Nexus with my google account

Nexus 7 with my google account

Galaxy S3 with my google account

Galaxy S2 without my google account

View 2 Replies View Related

Android :: Specify Intervals For Location Manager To Broadcast Current Location In Android

Apr 2, 2010

Is there any way to specify the time intervals that the Location Manager broadcasts the current location?

I am using a method called startListening:

CODE:.....................

View 5 Replies View Related

HTC Desire :: Home Location Fixed Instead Of Current Location

Nov 14, 2010

How could I fix the location which appears on the clock on the home screen and serves as weather forecast location? I am not living near a big city listed on the weather location list and when at home, the current location usually is indicated some dozen miles away from my home. This could be a cosmetic problem, but in the Alps (where I am living) weather a short distance away can be quite different from where you are.
Besides that, it would be nice to know the weather at home while beeing abroad.

View 3 Replies View Related

HTC Droid Eris :: Wrong Location / Location Unavailable

Jul 2, 2010

i've had my phone about 3 weeks now. up until last week, the htc weather widget would update to my current location. when i was home, it would show the town i live in. i also had the google internet option to use my location and this would also work perfectly until last sunday.now, the weather location was stuck on miami no matter where i went (as far north as west palm beach) and the internet shows up 'location unavailable'. i have found out that the gps is picking up where i am in goggle maps but it seems that the cell towers are not as far as weather and internet location are concerned. i have tried all of the obvious settings.i did a factory reset and now my weather says ft lauderdale which is closer to me but still not my town. it does not update (manually either) as i move. the internet location still says location unavailable although for a fleeting minute after the factory reset, it DID locate me....then it was gone so i called verizon, they didn't have a clue. then i took it to the store and it turns out EVERY phone the tech tried in the store had the same problem, including his. he told me it was a google problem and there was nothing he could do about it. i felt if i tried explaining how that would make it a verizon problem as well, it would be a losing battle

View 7 Replies View Related

Check Location In Background Service

Mar 1, 2012

I wanna background service which is looking every minute for the location.

So I created a service and created a broadcast receiver connected to the alarm service.

That works generally fine.

Now I wanna check the Location in that Service, I have a Service which is looking first for "gps" and if not available then for "network" location. That works fine!

Now my confusing case: If I am at home and connected to the WLAN the Location is found every minute and give me an notification in android bar all is fine!

But if I am on street and go around it doesnt work. The Service is just running when I touch the screen and make it active, then the service starts and gives me the location.

Why the service just works at street when I have the screen active? And at home in my WLAN it works always even the screen is not active.

View 1 Replies View Related

HTC EVO 4G : Clicked Update Location But It Says My Location Is Unavailable

Jun 7, 2010

I am having problems with the quick search feature. I did a random search for Mcdonalds and a map pulls up that is no where around me. I clicked update location but it says my location is unavailable. I have GPS enabled and my navigation app works just fine.

View 1 Replies View Related

How To Change SDK Location - Eclipse Not Allow To Submit New Location

May 10, 2013

today i was trying to open my old workspace projects by Eclipse but the old projects used old SDK path n so when i try to change my SDK location the eclipse not allow me tho submit my new location how i can solve this problem

View 1 Replies View Related

Android :: Want API Method [android.location " Pack ] To Get Location Name?

May 5, 2009

Is there any API method{[android.location " pack ] to get location name? did not find related method to to retrieve location name for given GeoPoint(lat,lon); I wanted to keep list of location names for particular GeoPoints (lat,Lon) in journey. can this be achievable in Android to calculate the name of location from lat .

View 4 Replies View Related

Samsung Moment :: How Does 'Emergency Location' / 'E911' Service Work?

Dec 9, 2009

I am on the cusp of leaving my BB Curve and buying either an HTC Hero or the Samsung Moment. Both have their pluses and negatives.However, something I hear in both forums is to save battery turn off GPS. If you do that how does "Emergency Location" and/or "E911" service work? Aren't those dependent on GPS?

View 3 Replies View Related

Android :: Android Location Services Not Posting GPS Location

Jul 19, 2010

I checked and loading up my maps application or another app that I've written that uses the location API finds me almost immediately - this, on the other hand, leaves me waiting forever without a single update. And yeah - I checked my permissions in AndroidManifest :)

View 1 Replies View Related

Sprint HTC Hero :: No Service - Google Maps Show Our Location Using Cell Towers?

Mar 24, 2010

A few of us at work are wondering if we can use the google map or anyother type of locating device on our phones without phone service. Does the google maps show our location using the cell towers?

View 15 Replies View Related

Android :: Enable A Currently Disabled Spinner

Aug 4, 2010

I was fooling around with Android and my Java knowledge is limited at best (for instance, I'm perplexed by the fact that it allows inline classes!?).I have a layout where there are three dropdown menus. I initialise all three of them inside onCreate().The first one takes its values from a string-array. The second one, however, depends on the choice of the first one and the third one depends on the choice of the second one in turn.I have a few string-arrays for the second Spinner but I was wondering what would be the correct way to implement a list of successively enabled Spinners. I'm tempted to just hack into it and make it work but I don't want to run the risk of it being malformed and unstable.

View 2 Replies View Related

General :: How To Enable Prompt To Choose Video Player While Playing Any Video In Browser

Dec 3, 2012

I am using the Alcatel OT-918d (stock rom, root access enabled) and while playing videos in the browser, I do not get an action prompt to choose from the available video players and browser plays the video using "default video player".

The so called "default video player" has been uninstalled though. Have cleared cache, clear defaults, clear data for the browser but still do not get a prompt to choose a video player while playing videos from the browser.

Also installed the "Default App Manager" to check for the default video player. However, it indicates no defaults to play any videos (either from file or streaming videos).

(If I play a stored video from phone or SD card, I do get the prompt to choose a video player. But do not get a prompt if playing any video in the browser.)

View 6 Replies View Related







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