Android, get screen width and height?
<p>I am trying to get the width and height of the screen in Android, i have:</p>

<pre><code>DisplayMetrics displaymetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
stageWidth = displaymetrics.widthPixels;
stageHeight = displaymetrics.heightPixels;
</code></pre>

<p>The width is 1280 but its coming back with 752.</p>

<p>Any ideas?</p>
