I got a issue with DisplayMetrics.
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
Log.d("TEST", dm.widthPixels + "x" + dm.heightPixels);
If I do not specify the <uses-sdk android:minSdkVersion="4" /> or
<supports-screens android:anyDensity="true"></supports-screens>, then
the value of dm.widthPixels and heightPixels is wrong on QVGA and WVGA
screen. e.g. on QVGA, the return value is 320x427.
If this is a bug on Android1.6 SDK?
For chinese users, please see http://easyandroid.com/bbs/viewthread.php?tid=19
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---