title: Android WindowManager shows same screen size for different devices
body: <p>I am debugging my application on 2 different Droid devices: Bionic and Droid3.  When I use WindowManager to display device width &amp; height, it shows 540x960 (portrait) and 960x540 (landscape) for both devices!  How is that possible?  The 2 devices are clearly of a different size.  Here is the code:</p>
  
  <pre><code>Display display = getWindowManager().getDefaultDisplay();
  final int width = display.getWidth();
  final int height = display.getHeight();
  </code></pre>
  
  <p>Thanks,
  Igor</p>