Alternatively, does getLastLocation()
get the last location update generated by requestLocationUpdates()
or can my app access location data requested by other applications: say if Yelp makes the most recent location request will my GoogleApiClient access that resource when I call getLastLocation()
?
My confusion is in this line in the Google API docs:
If a location is not available, which should happen very rarely, null will be returned. The best accuracy available while respecting the location permissions will be returned.
Furthermore, in the Udacity android location services course the instructor never calls requestLocationUpdates()
only getLastLocation()
.