Menu Back keys not recognized when testing on Device
Helo,
I've been searching over the web, without success finding a solution,
hope to find an answer here.
I'm new to Air for Android Dev, so i found and downloaded a nice sample app to learn from.
Here's a relevant code:
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
function onKey(e:KeyboardEvent):void {
if(e.keyCode == Keyboard.MENU) {
e.preventDefault();
trace("menu");
}
}
Everithing was fine, the code was working at simulator, and on my device,
so I created a new "Air for Android" document, and wrote the very same code just to test.
After publishing my new document (very same to the one I've downloaded), it stoped recognizing KEY_DOWN event on my device,
but when publishing to a simulator everything is fine and working.
Hope that someone here has an idea of what could be the reason for this problem,
Aline.
