title: Converting pixels to dp
body: <p>I have created my application with the height and width given in pixels for a Pantech device whose resolution is <code>480x800</code>.</p>
  
  <p>I need to convert height and width for a G1 device.<br>
  I thought converting it into dp will solve the problem and provide the same solution for both devices. </p>
  
  <p><strong>Is there any easy way to convert pixels to dp?</strong><br>
  Any suggestions?</p>