problem with retriving Android device location

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
AstghikM
Posts: 45
Joined: Mon Sep 08, 2014 8:35 pm

problem with retriving Android device location

Post by AstghikM » Mon Jun 15, 2015 2:58 pm

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
Attachments
Compass-2.zip
(2.31 KiB) Downloaded 243 times

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: problem with retriving Android device location

Post by LCNeil » Mon Jun 15, 2015 3:13 pm

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
-

AstghikM
Posts: 45
Joined: Mon Sep 08, 2014 8:35 pm

Re: problem with retriving Android device location

Post by AstghikM » Mon Jun 15, 2015 8:47 pm

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

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: problem with retriving Android device location

Post by SparkOut » Mon Jun 15, 2015 8:59 pm

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.

abhinav7979
Posts: 5
Joined: Mon Jan 04, 2016 1:10 pm

Re: problem with retriving Android device location

Post by abhinav7979 » Tue Jan 12, 2016 4:07 pm

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:

Post Reply