How to get screen size?
<p>How to get screen size (in pixels)? I used </p>

<pre><code>Display display = getWindowManager().getDefaultDisplay(); 
Point size = new Point(); 
display.getSize(size);
int width = size.x; 
int height = size.y;`
</code></pre>

<p>but it doesn't work...</p>
