Hi all,
i have been trying to use the back key event of the android device button , i have looked every where but the event simply is not triggered .
local function onKeyEvent( event ) local phase = event.phase local keyName = event.keyName if(keyName=="back") then print("Back event is working") end -- we handled the event, so return true. -- for default behavior, return false. return true end -- Add the key callback Runtime:addEventListener( "key", onKeyEvent );
i tried to test this code over and over but nothung is happening