On Fri, Feb 18, 2011 at 2:14 PM, Jake Colman <[email protected]> wrote: > In my instance, I don't much care whether I get a fine or coarse > location fix. And I cannot know whether the user will even have a GPS. > Does this imply that I always just ask for a network fix?
Use the Criteria object to determine what location provider you want. > If I use the > LocationPoller (or anything similar) will it get only get what I ask for > even if a better fix is available? Yes. Now, there are newer LocationManager methods that take a Criteria object as a parameter instead of a location provider name. I didn't use them in LocationPoller, because they showed up in API Level 9 and I was trying to keep my initial implementation simpler. > And is it smart enough to know not > to do alot of work if the phone has not moved? How would it know if the phone has not moved, except by determining its location? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.3 Programming Books: http://commonsware.com/books -- 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

