Q:

Android screen - angle of rotation

Question is related to rotation of the android emulator screen. 
I am using DefaultDisplay.getRotation() to get the rotation angle on the emulator. It returns 0 and 90 only. Even in reverse portrait and reverse landscape. Have not set any specific Screen orientation in the activity XML file. I am a beginner at this so am probably missing something here and could use some help understanding what that might be.
Thanks.

A:

First of all getRotation method doesn't work in emulator screen. Because according to your thread you can see you are getting only two angles i.e. "0" and "90" because of landscape and potrait mode. So just test it in any real device.

