Fix Android orientation problem

If the device orientation changes after application launch,
accelerometer values are still calculated with the old orientation. This
patch fixes that.
Merge pull request #1629 from rgngl/androidOrientationFix

Fix Android orientation problem