The app hangs/crashes after displaying an alert when compiled for and run on a device.
(This sample code should display a grey rect in the center of the screen after a button has been pressed)
local onButtonTouch = function(event) if (event.action == "clicked") then print("button ",event.index, "pressed") local r = display.newRect(display.contentCenterX,display.contentCenterY,100,100); r:setFillColor(1, 0.5) end end native.showAlert("Test", "This is a test", {"OK", "Cancel"}, onButtonTouch)