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
problem with retriving Android device location
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
problem with retriving Android device location
- Attachments
-
- Compass-2.zip
- (2.31 KiB) Downloaded 243 times
Re: problem with retriving Android device location
Hi Astghik,
Tried the stack on one of our test devices and the data seems to be coming back ok. See the below screenshot-
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
-
Tried the stack on one of our test devices and the data seems to be coming back ok. See the below screenshot-
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
Thank you for reply,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-
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
-
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
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.
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.
-
- Posts: 5
- Joined: Mon Jan 04, 2016 1:10 pm
Re: problem with retriving Android device location
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.

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.

