All I am doing is getting the latitude/longitude while my phone is on the desk. It is using the fine location and not course. And I have the location enabled on my samsung galaxy s4. It is bouncing all around up to 12 feet from my current location. Should it be line this? Below is the code I am using.
Thanks,
Warren
local locationHandler = function( event ) -- Check for error (user may have turned off location services) if ( event.errorCode ) then native.showAlert( "GPS Location Error", event.errorMessage, {"OK"} ) print( "Location error: " .. tostring( event.errorMessage ) ) else lat2 = event.latitude lon2 = event.longitude lblText5.text = lat2 lblText6.text = lon2 end end Runtime:addEventListener( "location", locationHandler )