Issue in converting px to dp for samsang galaxy tab
<p>I am creating android application using java code. we are converting DIP to PX using below code</p>

<pre><code>Px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, getResources().getDisplayMetrics().metrics);
</code></pre>

<p>Galaxy Tab 7inch (sdk version 3.2) :
                 density=1.0 width=1024, height=600 and picking the values from values-large folder</p>

<p>Galaxy Tab 7inch (sdk version 2.2) :
                 density=1.5 width=1024, height=600 and picking the values from values-large folder</p>

<p>That’s why in galaxyTab 2.2 value also coming from values-large folder and because of density 1.5 , its multiplying 1.5 </p>

<p>thanks
binish</p>
