Page 1 of 1
ANSWERED: A working LiveCode 5.5 GPS smpl app for Android?
Posted: Sun Mar 25, 2012 2:38 am
by BarrySumpter
Hi all,
I've got my gps app working with LiveCode 4.6.4.
I had to use Basic4Android to generate my GPS coordinates since LC 4.6.4 couldn't.
Now that LC 5.5 for Android has GSP capability,
I can't seem to find a practicle example of its use.
Does anyone have a working GPS sample app for Andoird?
Re: Anyone have a working LiveCode 5.5 GPS smpl app for Andr
Posted: Sun Mar 25, 2012 3:24 am
by BarrySumpter
I'm gonna stumble me way thus this lesson n see what trouble I can find on Android:
How do I use Core Location in revMobile
http://lessons.runrev.com/s/lessons/m/4 ... -revmobile
Re: Anyone have a working LiveCode 5.5 GPS smpl app for Andr
Posted: Sun Mar 25, 2012 4:20 am
by BarrySumpter
Just change any iOSxxx command to mobilexxx.
And iPhonexxxx to mobilexxxx.
My tests took about 30 secs to 2.5 mins to get the GPS reading.
(See next message to improve GPS response.)
16. The permissions to be added to the manifest.
i. Write external storage is required if your app will read or write files on external storage
(e.g. an SD card)
ii. Internet is required if your app is accessing the internet.
iii. Camera is required if your app is using any camera features.
iv. In-App Billing is required if you wish to use In-App purchasing
v. Fine Location is required if you wish to use GPS to triangulate device location (requires
course location)
vi. Coarse location is required if you wish to use mobile networks to triangulate device
location
Re: Anyone have a working LiveCode 5.5 GPS smpl app for Andr
Posted: Sun Mar 25, 2012 2:41 pm
by BarrySumpter
As an additional note I have confirmed that the GPS Tracking automatically stops when I exit my GPS test app.
Make sure Settings | Wireless & Networks | Wi-Fi is Connected (ticked on)
Settings | Location & Security Settings | Use wireless networks (ticked on)
Settings | Location & Security Settings | Use GPS satellites (ticked on)
I'm wondering is there a way for LiveCode for Android to check these three settings?
Re: Anyone have a working LiveCode 5.5 GPS smpl app for Andr
Posted: Mon Mar 26, 2012 12:07 am
by BarrySumpter
Another GPS sample using the LC browser.
Instead of retrieving a static map from google like the TickedOn project.
Originaly posted by dixie.
Updated to Android by me.
Lots of nice reminders how well rounded LiveCode is.
(Well if one knows how to use it properly that is. Meaning not me.

)
Orientations, ControlCreate, mobileControlSet, Environment, resizeStack, etc.
Very nice.
Thanks Dixie.
Re: ANSWERED: A working LiveCode 5.5 GPS smpl app for Androi
Posted: Tue Apr 17, 2012 4:57 am
by BarrySumpter
Yet another contribution by Dixie.
Updated by me for Android.
This one using the LC browser.
App Changes City selected locations by editing the .html file.
Genius!
Re: ANSWERED: A working LiveCode 5.5 GPS smpl app for Androi
Posted: Thu Apr 19, 2012 2:24 am
by Gene
Are you just interested in a simple example of how LC 5.5 can be used to return Lat and Lon coordinates? I have a stack that I have been playing with more for fun than anything else. It came out of an idea for racing sailboats, where the app automatically detects the time you pass over the start line (between to GPS coordinates). It has the basics of grabbing the Lat/Lon coordinates and some basic trig to process the ouput. I'll post it if this sounds like something that would help, but I think the L/C code is probably pretty crude.
I have a more advanced app I'm working on to lay out a race course using GPS, but the GPS stuff is pretty much buried in the complexities of the rest of the program.
Cheers - Gene
Re: ANSWERED: A working LiveCode 5.5 GPS smpl app for Androi
Posted: Fri Apr 20, 2012 7:22 am
by BarrySumpter
Yes please Gene.
Anything you would care to post would be fantastic.