I think the API doc is explanatory enough. public Location getLastKnownLocation(String provider) "Returns a Location indicating the data from the last known location fix obtained from the given provider. This can be done without starting the provider. Note that this location could be out-of-date, for example if the device was turned off and moved to another location."
You get accurate coordinates only if the location provider has been active. Otherwise, as you move, and the loc provider is off, nothing will register the location change. You can still make a call for last known location but it will be inaccurate. I'm a little disappointed by the LBS API Google has delivered this time. I find JSR-179 a way better in most situations. On Dec 16, 5:41 am, lior <[email protected]> wrote: > Hi All, > > I am trying to figure out how these location methods work behind the > scenes. > > Per the documentation, it is not clear whether any GPS change of > location will notify both our activity (if we requested location > updates) and register the “LastKnownLocation”. If that is the case > then using the GetLastKnownLocation() is always the best bet to get > current location. > > Please share your thoughts, > Lior --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

