title: How do I know how much DPI the device has?
body: <p>How do I know how much DPIs a device has (and thus if it's ldpi / mdpi / hdpi / xhdpi, - and screen size, which is also measured in dp - xlarge / large / normal / small -  according to <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow noreferrer">http://developer.android.com/guide/practices/screens_support.html</a>)?</p>
  <p>I know the device's resolution and diagonal size, for example:</p>
  <blockquote>
  <p>Display   TFT LCD, 3.5 in (89 mm) diagonal.</p>
  <p>320×480 px HVGA with Gorilla Glass</p>
  <p>16M colors</p>
  </blockquote>
  <p>(Taken from <a href="http://en.wikipedia.org/wiki/Samsung_Galaxy_Ace" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Samsung_Galaxy_Ace</a>)</p>
  <p>Don't need it programmatically, just to calculate myself.</p>