I added the following runtime event in main.lua. It works fine in the device but crash whenever I reload the corona simulator. I do some search said it may related to storyboard as it works fine without using storyboard. I tried to add the runtime event in enterScene or createScene and remove it in destroyScene or exitScene but the same thing happen. Anyone have the same problem? I am using the latest daily build (2013.1146)
onSystem = function( event ) if event.type == "applicationStart" then -- Do something elseif event.type == "applicationExit" then -- Do something elseif event.type == "applicationSuspend" then -- Do something elseif event.type == "applicationResume" then -- Do something end end Runtime:addEventListener( "system", onSystem )