title: android get screen size of the other screen orientation
body: <p>since android 3.0 there is a navigation bar with back and home button on the display. Now if I get the screen size like this </p>
  
  <pre><code>ClockLwp.ScreenHeight = getWindowManager().getDefaultDisplay().getHeight();
  ClockLwp.ScreenWidth = getWindowManager().getDefaultDisplay().getWidth();
  </code></pre>
  
  <p>of this</p>
  
  <pre><code>getResources().getDisplayMetrics().widthPixels
  getResources().getDisplayMetrics().heightPixels
  </code></pre>
  
  <p>I get different values for the landscape and portrait. Here is an example what I mean:</p>
  
  <p>Acer Iconia A500 portrait mode  :  800 x 1232
  Acer Iconia A500 landscape mode : 1280 x  752</p>
  
  <p>AFAIK this goes for all devices with such a navigation bar. (e.g. Samsung Galaxy Nexus, GalaxyTab 10.1 etc.)</p>
  
  <p>Now my question is, if I am in portrait mode how can I get the values of landscape mode and the other way around?</p>