How to convert smallestWidth pixels to Android smallestWidth in dp
<p>I have 7" tablet with resolution of 600*1024. I observations of this device are,</p>

<ul>
<li>Diagonal resolution=169 dpi</li>
<li>Diagonal resolution=113 dp</li>
<li>Android Resolution bucket = HDPI</li>
<li>Width * Height = 400 dp * 682 dp</li>
<li>Smallest Width = 400 dp</li>
</ul>

<p>But if i use <code>config.smallestScreenWidthDp</code> it returns smallestWidth is 600 dp. But i got 400 dp. How to calculate this 600 px to dp?</p>

<p><strong>My Calculation:</strong></p>

<p>Device actual smallest width = <code>600 px</code></p>

<p>Device is HDPI. So divide the px value by MDPI scaling factor <code>1.50</code>.</p>

<p>I got answer as <code>600/1.5= 400 dp</code></p>
