• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

first location is incorrect

Participant ,
Jul 09, 2012 Jul 09, 2012

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.

TOPICS
Development

Views

631

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jul 10, 2012 Jul 10, 2012

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

...

Votes

Translate

Translate
Explorer ,
Jul 10, 2012 Jul 10, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines