So, I solved it. I have problem with manifest.xml. When I don't use android:targetSdkVersion="4" it resize for example QVGA from 240x320 to 320x427 and WVGA from 480x800 to 320x533. When I use android:targetSdkVersion="4" everithing works good and Display display = ((WindowManager) getSystemService (Context.WINDOW_SERVICE)).getDefaultDisplay(); display.getWidth(); display.getHeight();
return me correct absolute size of the physical screen. QWGA 240x320 like in Table 1 on http://d.android.com/guide/practices/screens_support.html#range Now I need density too, so I use DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); metrics.densityDpi; it returns 120, 160 and 240 int number. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

