title: How to calculate the pixel density (dp) of a device?
body: <p>What is the independent pixel density for a Galaxy s4?</p>
  
  <p>I need it so I can have a qualifier <code>sw???dp</code> for that phone.</p>
  
  <p>It would be great if you could explain how to calculate it.</p>