function onResume() ui:showText("Click to open dialog") end function onClick() ui:showDialog("Dialog title", "This is dialog") end