Android: get x , y co-ordinates of a screen..?
<p>I am working with sdk 8, I need get (x,y) points on screen which will be common across Device/Densities .. i mean the value remains same irrespective of diff densities..</p>

<p>I have tried this</p>

<pre><code>int height = (int) (displaymetrics.heightPixels / (displaymetrics.densityDpi / 160f));
int wwidth = (int) (displaymetrics.widthPixels / (displaymetrics.densityDpi / 160f)); 
</code></pre>

<p>But it gives different values..</p>

<p>Is there anything i am missing..</p>

<p>Thanks..</p>
