Later in this chapter, we will add in a feature to allow the app user to add a set of favorite locations. For the moment, we'll just try out the basic functions. Location doesn't work in the simulators; you'll have to try this on a real device:
Get Locationbutton and a
locationfield. Make sure that the
locationfield is as wide as the card window; it will show three long numbers.
on mouseUp mobileStartTrackingSensor "location", true put mobileSensorReading("location", false) into field "location" mobileStopTrackingSensor "location" end mouseUp
truevalue in the second line is the one that ...