03-29-2011 08:16 AM
Hey guys. I'm looking through the qnx API and I'm trying to find an event for when an app gets minimized, and when it gets focused on again.
I assume it was in qnx.events, but either I'm not looking right, or it's not there.
Can anyone help me with this?
Solved! Go to Solution.
03-29-2011 08:57 AM
Use flash.events.Event.DEACTIVATE for any situation where the app is minimized or switched away from, and ACTIVATE comes when it goes back to fullscreen.
03-29-2011 09:56 AM
I should note that there's a bug involving these events, which you can work around easily. I reported it as TABLET-86 (possibly not visible publicly yet as it's still in "triage").
The ticket content reads "After getting the initial Invoke and Activate events, when the user
first clicks anywhere inside the screen area the app will receive one
redundant Activate event. See full report in this forum message: http://supportforums.blackberry.com/t5/Tablet-OS-S
06-07-2011 04:25 PM
I find that Event.DEACTIVATE doesn't fire when minimized, but when another another application is maximized instead.
That's also the gist I get here:
"Event.DEACTIVATE when another application receives the foreground"