Locationclient Does Not Update Getlastlocation() On Emulator
I'm using the google play services api to get location updates in my app. However, for some reason, client.getLastLocation() doesn't changes its value when a client is connected. O
Solution 1:
This happens because getLastLocation
is a non-blocking, pro-battery call to get the last known location (this might be old value) and when nothing is actively retrieving location updates it won't be magically changed.
The best thing you can do to get location on user request is starting requesting location updates and stopping it when you get the first location.
Post a Comment for "Locationclient Does Not Update Getlastlocation() On Emulator"