Anna PS wrote: > Basically my question is this - does the fact that I'm running a > background thread somehow make the accuracy worse? Or is the problem > in my code, something to do with the way that I'm polling the GPS > data?
I cannot say for certain whether your background thread is causing your GPS accuracy issues. However, I don't think you need that background thread. Have you tried just using your (presently no-op) LocationListener? Your choice of 0,0 for distance and duration on requestLocationUpdates() means, AFAIK, that your LocationListener will get fixes as soon as they are available via onLocationChanged() (docs: "To obtain notifications as frequently as possible, set both parameters to 0."). Try using the listener instead of the background thread/getLastKnownLocation() and see what the results are. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

