Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Is it possible to do some actions before application goes background? — Gideros Forum

Is it possible to do some actions before application goes background?

romkaromka Member
edited October 2013 in General questions
In my application I calculate how long user played the game. When user pauses the game I stop my time-counter. I added listener for event Event.APPLICATION_SUSPEND (I also tried to use Event.APPLICATION_BACKGROUND). This listener pauses the game and stops time-counter if user pressed "Home" button. But this event is fired only when user returned to the game from the background and my timer doesn't stops correctly. How can I do something before application goes to background? Is it possible to catch "Home" button press in event Event.KEY_DOWN?

Dislikes: yubaro

+1 -1 (+0 / -1 )Share on Facebook

Comments

Sign In or Register to comment.