title: How to get the density of a screen?
body: <p>How to get density of a screen? I have tried with the following code. I got density as <code>1.0</code>. I changed my emulator TO <code>HVGA</code>, <code>QVGA</code> and <code>WVGA</code> still I am getting the same result. </p>
  
  <pre><code>int density = getResources().getDisplayMetrics().density;
  </code></pre>
  
  <p>How to get actual density of my emulator screen.</p>