4
votes

I'm trying to support as many android devices as I can for the app I'm writing, but in trying to do so, I discovered a weird problem. I have drawable folders for each screen size & density combination (e.g. drawable-small-mdpi, drawable-large-ldpi, etc.) and layout folders for each screen size qualifier. I set up emulators for testing both the small-ldpi (I just used WQVGA432) and the small-hdpi scenarios (I used the WQVGA skin and set the abstracted density to 240). The problem I discovered is that the small-hdpi emulator accesses the correct layout-small folder, while the small-ldpi (WQVGA432) emulator uses layout-normal and drawable-normal-ldpi folders. It seems strange that the WQVGA emulator would not use the correct resources though its specifications SHOULD be meeting the requirements as listed in the Supporting Multiple Screens article here:

http://developer.android.com/guide/practices/screens_support.html

Density:

ldpi Resources for low-density (ldpi) screens (~120dpi).

mdpi Resources for medium-density (mdpi) screens (~160dpi).

hdpi Resources for high-density (hdpi) screens (~240dpi).

xhdpi Resources for extra high-density (xhdpi) screens (~320dpi).

Screen Size:

xlarge screens are at least 960dp x 720dp

large screens are at least 640dp x 480dp

normal screens are at least 470dp x 320dp

small screens are at least 426dp x 320dp

WQVGA432:
screen : 240 x 432
density : Low(120)

largeHDPI:
screen : 240 x 432
density : High(240)

Anybody know what the problem is or how to fix it?

1
can you mark my answer, if it is true.Gökhan Barış Aker

1 Answers

2
votes

There is no certain resolution and density interval for devices, as mentioned at range of screens supported. So this is not a problem, just a trolldroid ^^. Also quoting from the Supporting Multiple Screens document;

  • "Note: These minimum screen sizes were not as well defined prior to Android 3.0, so you may encounter some devices that are mis-classified between normal and large. These are also based on the physical resolution of the screen, so may vary across devices—for example a 1024x720 tablet with a system bar actually has a bit less space available to the application due to it being used by the system bar."