This code:
activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
is reporting landscape xdpi = 195.38461 on the new Nexus 7. My tape measure says the screen is 1/16″ shy of 6″ wide, and at 1280 pixels, that works out to 215.57894.
And yes, our Android.xml says:
<uses-sdk android:minSdkVersion="16"/>
Is this just a bug, or are we doing something wrong?
From this response from Dianne Hackborn:
Basically, you can’t rely on what that returns, at all.