Problems with using location

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
hsh_636
Posts: 31
Joined: Sun Mar 02, 2014 5:15 pm

Problems with using location

Post by hsh_636 » Sun Mar 02, 2014 5:26 pm

Im trying to come up with an app that requires getting the latitude and longitude I tried using Compass-2.rev as an example which is found on live code website just google Compass-2.rev next to live code, and then tested it on samsung galaxy s3 everything worked except finding the location and when I click the button test for support it displays location not supported, if anybody can help me with this problem because I`ve been trying to solve it for three days now, but I still can't pinpoint the problem.

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problems with using location

Post by Klaus » Sun Mar 02, 2014 6:04 pm

Hiu hsh_636,

here is the stack in question:
http://lessons.runrev.com/s/lessons/m/4 ... al-compass

1. welcome to the forum! :D

2. Not sure what the problem is:
Does your device support MobileSensor... "location" and the script tells you no?

What about the other possible options:
heading
acceleration
rotation rate
Do they work, or the stack tells they do?


Best

Klaus

hsh_636
Posts: 31
Joined: Sun Mar 02, 2014 5:15 pm

Re: Problems with using location

Post by hsh_636 » Sun Mar 02, 2014 7:35 pm

Actually all the options work except location for some reason Im using samsung galaxy s3, so Im not sure if it support mobile sensor or not.

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

Re: Problems with using location

Post by LCNeil » Mon Mar 03, 2014 10:35 am

Dear Hamad,

We your support request via support but it will be easier to answer your question and it will benefit other LiveCode users.

I have tested this sample stack on my Galaxy S3 and experience the issue that is occurring for you. The reason for this it that the sample stack does not have the location options checked within the stanalone applciation settings. More specifically, "Fine Location" and/or "Coarse Location"

Once these were checked, the app worked as expected on my GS3

Let us know how you get on.

Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
——

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

Re: Problems with using location

Post by LCNeil » Tue Mar 04, 2014 2:14 pm

Hi Everyone,

This questions does come up now and again, so we've posted this question along with a response on stackOverFlow. We hope that this will be of some assistance to other LiveCode users in the future.

http://stackoverflow.com/questions/2217 ... n-livecode

Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
——

hsh_636
Posts: 31
Joined: Sun Mar 02, 2014 5:15 pm

Re: Problems with using location

Post by hsh_636 » Sun Mar 09, 2014 12:08 pm

Thanks, Mr. Neil Roger for all your help.

hsh_636
Posts: 31
Joined: Sun Mar 02, 2014 5:15 pm

Re: Problems with using location

Post by hsh_636 » Sun Mar 09, 2014 2:46 pm

Thanks, I just tried it and it totally work.

Post Reply