Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
APPLICATION_EXIT Event — Gideros Forum

APPLICATION_EXIT Event

Hey all, I have the following code...
local function onExit()
  print("-------------------------")
  print("EXITING!!!!")
end
 
stage:addEventListener(Event.APPLICATION_EXIT, onExit)
stage:addEventListener(Event.KEY_DOWN, function(event) if event.keyCode == KeyCode.BACK then print("BACK KEY PRESSED") application:exit() end end)
 
print("HANDLER INSTALLED")
When I run this on both of my android devices... I get the "HANDLER INSTALLED" and "BACK KEY PRESSED" messages but I do not get the "EXITING!!!!" messages when I exit the app.

Does anyone else have this issue? And how do I resolve it please :)

Comments

Sign In or Register to comment.