function Quit() native.showAlert( "", "You scored " .. score .. " !" ) native.requestExit( ) end
Hey there,
I am currently making a quit button. When you tap it, the above code is executed.
When using the corona simulator, the message box appears and the simulator closes at the same time.
But when testing it on my Android, the game crashes and displays a “Unfortunately, <filename> has stopped”
How can I make the game to display the score message then close, without crashing ?
Any help is appriciated
Joe