I have two approaches to get real resolution:
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
d
I believe this is because your target or minimum SDK version is activating Screen Compatibility Mode. You should use higher minimum and target SDK values in your manifest.
Conclusion about how to get real resolution:
< uses-sdk android:targetSdkVersion="4"...
< supports-screens android:anyDensity="true"...
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
String resolution = dm.widthPixels + "x" + m.heightPixels;