Copy link to clipboard
Copied
I am using the Flex geolocation interface on an Android phone indoors (without GPS reception), and the first location update I get appears to be the last known GPS location. Subsequent location updates based on WiFI are correct. Each time I exit and return to the application, the same location appears first, despite the newer, correct WiFi locations. Is there a way to eliminate this behavior? It would be better to say the location is not yet known than to give back an old incorrect location.
Hi,
This is a known problem and it's documented.
For more details, see:
Geolocation tips, quirks, and possible bugs (flash.sensors.Geolocation)
http://www.gregsramblings.com/2011/09/08/geolocation-tips-quirks-bugs-flash-actionscript/
"The first location event received is usually NOT the current location.
It is often the “last known location” or the cached location."
and the documentation (Update event) :
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/sensors/Geolocation.html
"N
...Copy link to clipboard
Copied
Hi,
This is a known problem and it's documented.
For more details, see:
Geolocation tips, quirks, and possible bugs (flash.sensors.Geolocation)
http://www.gregsramblings.com/2011/09/08/geolocation-tips-quirks-bugs-flash-actionscript/
"The first location event received is usually NOT the current location.
It is often the “last known location” or the cached location."
and the documentation (Update event) :
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/sensors/Geolocation.html
"Note: AIR dispatches the first event immediately if the device has a last known location;
your code must be aware that the initially dispatched event may not contain the current location."
Philippe