You app probably runs in "compatibility mode", presenting a lower "virtual" resolution and then scaling all graphics up to the actual device resolution. For more information, see the "supports-screens" manifest element: http://developer.android.com/sdk/android-1.6.html and: http://developer.android.com/guide/topics/manifest/supports-screens-element.html
The abundance of Android phones is something we (as Android developers) have to live with. I think of it as a mixed blessing: because of the many Android phones the target audience is much bigger than would be the case with a single phone. Because of this the Android platform has a fighting chance to become one of the dominant mobile platforms. Only then Android can become a viable platform for profitable software development. On Nov 27, 7:21 am, feeling3_4 <lanwen.ban...@gmail.com> wrote: > Hi, all > > I have a problem with the wvga854 avd screen size. When my > application running on this avd, it does not use the layout-hdpi-v6, > but uses the layout-mdpi-v6. > > To make it clearer, I add the below code. it prints that the screen > size of the wvga854 avd is 320x569 ! Why? > > Display display = ((WindowManager) getSystemService > (Context.WINDOW_SERVICE)).getDefaultDisplay(); > int device_width = display.getWidth(); > int device_height = display.getHeight(); > Log.i("screen", "device width is " + device_width); > Log.i("screen", "device height is " + device_height); > > My develop environment is Mac ox + android 2.0 sdk. > > I begin to suffer more and more pain of these problems... does it have > to have so many different kinds of android phones on the world? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en