Lock orientation AIR 2.7 Android
Hi,
I working on an app where I want to respond to the device rotation changes but I want the stage to remain in the statting landscape mode.
I listen to StageOrientationEvent.ORIENTATION_CHANGING on the stage and preventDefault once I updated the app. This behavior woks when I test on the desktop. But on the devices (gTab and Atrix) the stage still re-orients.
autoOrient is set to true in the xml. aspectRation is set to landscape. Setting autoArient to false means the StageOrientationEvent never fires.
What am I missing?!
private function onStageOrientationChanging( e:StageOrientationEvent 😞void
{
// do my stuff & kill event
e.preventDefault();
}
