In my application, I request location updates and use the LocationListener, and in most cases everything works fine. When the application starts, it uses getLastKnownLocation, waiting for the first update of the location.
I am doing some tests on getLastKnownLocation, and the results are weird ...
If the result of getLastKnownLocation is out of date, I exit the application and start Google Maps and wait for it to take my location, and then when I run the application again, getLastKnownLocation still returns the old location. I do not understand why this is happening. Of course, if GMaps can get the fix, getLastKnownLocation must be updated, right?
source
share