Android images, density, and screen pixels
<p>I am confused by Android documentation about this questions so I will ask them here:
I have HTC Desire mobile on this <a href="http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density" rel="nofollow">link</a> I see that it has pixels 480×800 and Density 252</p>

<ol>
<li>When I try to get Density like this getResources().getDisplayMetrics().densityDpi I get value 240 and not 252.</li>
<li>I have image with size 400x113 with Density 240(Pixels/Inch) And when I try to get size in program with getWidth and getHeight it said 600 and 170.</li>
<li>What size my image need to be for this phone HTC Desire and which Density it need to have.</li>
</ol>

<p>Thanks.</p>
