title: Find screen angle when orientation is fixed in android
body: <p>I have fixed my screen orientation in an activity with </p>
  
  <pre><code>     android:screenOrientation="portrait"
  </code></pre>
  
  <p>Still, I want to find the angle at which the user is currently holding the screen, i.e, 0, 90 or 270. Accordingly I have to perform some actions.</p>
  
  <pre><code> getWindowManager().getDefaultDisplay()
          .getRotation()
  </code></pre>
  
  <p>The above code will always return 0 since I have fixed the orientation of the screen. Can someone please suggest how do I determine the screen orientation in this situation.</p>