Height of screen in portrait mode only?
<p>How can I get the height of the device for portrait mode? I have to create a bitmap (which is zoomable) and I just want to get a rough idea what the tallest height should be.</p>

<pre><code>getResources().getDisplayMetrics().heightPixels;
</code></pre>

<p>does the above return the height, in portrait mode only?</p>

<p>I'm not binding my UI to this absolute value, it's just a rough fit,</p>

<p>Thanks</p>
