I have an interest in this and will hopefully also be writing some simple GPS applications this summer. Concerning the exception, does including android.permission.INTERNET with android.permission.ACCESS_COURSE_LOCATION help? Concerning the interaction of fine and coarse location listeners, a Google IO 2010 session suggests implementing a back-off pattern that starts with a lot of location listeners and removes listeners as the location accuracy improves. See http://code.google.com/events/io/2010/sessions/beginners-guide-android.html
On Aug 2, 12:55 pm, RichardC <richard.crit...@googlemail.com> wrote: > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en