local function systemEvents(event) print("systemEvent " .. event.type) if event.type == "applicationSuspend" then print("suspending......") elseif event.type == "applicationResume" then print("resuming............................. ") -- do stuff here to resume your app. elseif event.type == "applicationExit" then print("exiting......") end return true end Runtime:addEventListener("system", systemEvents)
After the “if event.type == “applicationSuspend” then” Can I manually with code here tell that if the suspend event occurs, to resume the application?I searched and didn;t find such a method.