Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getLastKnownLocation() Android, when the Last Known Location is updated?

getBestKnownLocation 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.

when the Last Known Location updated in Android? is it updated if when there's an application listening for the location provider, if so what if there's no application that it ask for the location and then you asked for LastKnownLocation() ?

like image 317
Jimmy Avatar asked May 10 '11 20:05

Jimmy


People also ask

How do I find the last known location on Android?

Track your phone's location using Google MapsGo to http://android.com/find. Sign in with your Gmail™ account and password. On the map, you'll see your phone's approximate location. If the device cannot be found, it'll show you the last known location (if available).


1 Answers

I thinki LastKnownLocation() is updating when some programs in your phone use this function requestLocationUpdates.

like image 152
George Avatar answered Sep 28 '22 00:09

George