I’ve tried to modify the GPS sample program so that it reports the GPS position continuously rather that just once, as it does in the sample program. To do this I replaced the following code:
Runtime:addEventListener( “location”, locationHandler )
with this:
function main()
Runtime:addEventListener( “location”, locationHandler )
Runtime:removeEventListener ( “location”, locationHandler );
end
performWithDelayTimer = timer.performWithDelay(10000, main, 0)
Both versions work OK in the simulator. The first version works OK on my Samsung SGH-T769; however, the second version does not work in my Samsung SGH-T769.
Any suggestions would be greatly appreciated.
Thank you.
Ted
[import]uid: 171827 topic_id: 35366 reply_id: 335366[/import]