Get my locationcoordinates using gps andriod..

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Get my locationcoordinates using gps andriod..

Post by snop21 » Thu Feb 13, 2014 8:00 am

hi everyone,

Will just ask how to get my location coordinates using gps ? I saw sample but it build for iOS.. I am using andriod.

Thank you.

-snop21

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Get my locationcoordinates using gps andriod..

Post by AndyP » Thu Feb 13, 2014 10:06 am

Hi, try this in a button.

on mouseUp
get mobileSensorReading("location", true)
if it is an array then
combine it using return and "="
end if
put "Current Reading" && it & return before field "Location"
end mouseUp

and lookup 'mobileSensorReading' in the dictionary for more details. :wink:
Andy .... LC CLASSIC ROCKS!

snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Get my locationcoordinates using gps andriod..

Post by snop21 » Thu Feb 13, 2014 10:38 am

hi Andyp,

Thank you for the hint. will read it. I Will post it here whatever I came up. hehe :))

Regards

-snop21

Post Reply