Page 1 of 1

problem with retriving Android device location

Posted: Mon Jun 15, 2015 2:58 pm
by AstghikM
Hi,
I am trying to get mobile device current location via the script, which I am attaching. I checked all the fields suggested on runrev lesson:
http://lessons.runrev.com/s/lessons/m/4 ... al-compass
I was able to get "Location Tracking is Supported", but after it did not bring the Location Information.
Can anyone help me to see where is the problem?
I use HTC One phone.
Thanks,
Astghik

Re: problem with retriving Android device location

Posted: Mon Jun 15, 2015 3:13 pm
by LCNeil
Hi Astghik,

Tried the stack on one of our test devices and the data seems to be coming back ok. See the below screenshot-
Screenshot_2015-06-15-15-09-47.png
One thing to try (with the location sensor) is physically moving about the room you are in. This is because the locationChanged message is only sent when the device has change location. Little movement might have no effect with your device.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Re: problem with retriving Android device location

Posted: Mon Jun 15, 2015 8:47 pm
by AstghikM
LCNeil wrote:Hi Astghik,

Tried the stack on one of our test devices and the data seems to be coming back ok. See the below screenshot-
Screenshot_2015-06-15-15-09-47.png
One thing to try (with the location sensor) is physically moving about the room you are in. This is because the locationChanged message is only sent when the device has change location. Little movement might have no effect with your device.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-
Thank you for reply,
i tryed what you told , but i am afraid is not workig for me, when i click on Start tracking the GPS is turning on but after no result ... is there any other way?maybe i need to change some settings on my device?

Astghik

Re: problem with retriving Android device location

Posted: Mon Jun 15, 2015 8:59 pm
by SparkOut
Make sure no other apps are using GPS on the device. Force quit Google maps etc. Download Mark Pfluger's GPS Status Test & Fix from the play store. Reset GPS and get Xtra data again. Restart the phone.
Take the phone outside, make sure you get a good satellite fix with GPS status. Being indoors at all can play havoc with GPS registration.
Then exit and try your LiveCode test.

Re: problem with retriving Android device location

Posted: Tue Jan 12, 2016 4:07 pm
by abhinav7979
So, when I try to click on the Start Tracking for the second time , even after clicking on Stop Tracking, the app crashes. Is there any solution to fix this. How do I capture if the tracking is turned on/off.
I don't want to keep the tracking on while I'm using the other features of the app. So I use stop tracking the device. But when I want to use tracking again in the same session, the app crashes. I tried many ways to fix this or at least find out why it's crashing. Helpless so far.

Hope someone has fixed this bug! Please share the fix. :) :idea: