Orientation change with MXML
I have been banging my head on the wall trying to figure out how to detect the device orientation on the BlackBerry PlayBook. I initially tried to use the accelerometer function. Unfortunately, the listener would continue to activate and determining the exact orientation was a little iffy. So, a slight move of the device would set off the listener and the redrawing of the screen would keep going until the accelerometer stopped. This was not a good way to test for orientation, it will be a great way to make a game that required moving the PlayBook around a lot. Continue reading Orientation change with MXML