
July 9th, 2012, 06:16 PM
|
 |
Lost in code
|
|
|
|
|
What is getMyLocation() doing?
From a quick read of the API it looks like you should be binding a callback to a LocationManager and using that to obtain regular updates on the current location (which you might already be doing, I can't tell). My guess is that there is not a specific call you make to ask for a recalibration; either the recalibration happens automatically in all cases, or it only happens when you have an active handler bound to a LocationManager.
Another, perhaps more likely, possibility is that your LocationManager is set to only use GPS for location data and your phone is currently unable to obtain a GPS signal (for example, if you're testing inside a building). In that case the phone would probably return the last-known GPS location even if it differs from the phone's current location (as calculated using other metrics).
|