Question

I'm trying to get my current location and show it on a map.

Class com.google.android.maps.MyLocationOverlay.MyLocationOverlay does most of the work for you.

But it's coming back with a very coarse result that's off by a couple of clicks.

I'm listening for onAccuracyChanged() but that never gets called.

How can I get a more accurate location when using MyLocationOverlay?

P.S. manifest has:

 <application android:icon="@drawable/icon" android:label="@string/app_name"
    android:debuggable="true">
    <uses-library android:name="com.google.android.maps" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>    
Was it helpful?

Solution

Discovered my own answer.

The Settings App has a "Location" entry.

Under location, you can individually choose to enable or disable GPS or network use for location finding. I had GPS (the more accurate choice) disabled.

Thanks,

Peter
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top