I have written a simple GPS status application (just for my own
amusement) and was giving it a final run through when I can across a
problem.


When I took my phone down to the end of the garden I stopped getting
location updates.


When I re-connected the phone back onto the computer and examined
LogCat I saw that the WiFi was disconnecting followed by libgps
putting out PDSM_PD_EVENT_GPS_DONE and after that I got no more GPS
updates.

I then had a guess at the cause of the problem - in my Manifest I had
requested the following permissions:
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION

I removed android.permission.ACCESS_COARSE_LOCATION, re-tested and my
GPS app is now working fine.

I only request location updates from the GPS provider by:
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
LOCATION_UPDATE_REFRESH, LOCATION_MIN_DISTANCE, this);

So does anyone know how android.permission.ACCESS_FINE_LOCATION and
android.permission.ACCESS_COARSE_LOCATION interact with each other
when using the GPS?

Phone is HTC Magic running 1.6 (not rooted).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to