Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started by: benflock on February 13, 2014, 08:59:16 AM
-
hi!
brand new here
so far loving playmaker!
trying to get a simple app to track a location, using the example i can get it to load a location but not to update, i'm sending the location to a guiText and its not updating ...
i'm on a samsung galaxy note
any thoughts?
cheers
-
Hi and welcome!
What do you mean "location", how do you get this information, and what example are you refering to?
bye,
Jean
-
hi Jean
i'm trying to access the location data from the handset, ideally the GPS, i've been trying to use the 'getLocationInfo' - after using the 'startLocationServiceUpdate' -
i coded it myself and then also used the provided example (in PlaymakerSamples/testLab/device)
i'm trying to send the data to TextGUI just to debug directly on the device and check that its updating, but on the app finding the location data i get one update and then the data doesn't seem to refresh - or at least the gui doesn't update..
do you need to code a loop into playmaker - or should the action keep udpdating data until told to do otherwise?
thanks a lot
b
-
Hi,
You will need to update the data manually yes. so for example, every 5 seconds, loop to your state that checks and then you'll get the new position and will be able to show that new position.
bye,
Jean