title: Android get Device orientation
body: <p>I would like to get actual orientation of my DEVICE. I dont want to get layout orentation like this:</p>
  
  <pre><code>Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
  return display.getOrientation();
  </code></pre>
  
  <p>I want to get physical device orientation. Is there any way to get that in android?</p>