hi,
im trying to build a gps app to detect certain points.
i use this code to update gps lat an lng:
local function updateGPS() Runtime:removeEventListener( "location", locationHandler ) Runtime:addEventListener( "location", locationHandler ) end timer.performWithDelay(3000, updateGPS, 0) Runtime:addEventListener( "location", locationHandler )
is there a way to update the lat and lng without removing and creating the runtime?
on device it will not update 3 and 3 seconds…some times takes 10s to update…and worst…the direction and other info sometimes doesn’t update or goes to 0.
regards,
Carlos.
