Why is Android looking for QVGA resources in the wrong order mdpi> hdpi> ldpi?

I am trying to do some testing with a QVGA emulator, and I found that it is looking for an image resource in that order.

drawable-mdpi 1st
drawable-hdpi 2nd
drawable-ldpi 3rd
(it can be found only after I changed the name of the image in two other dirs for testing)

I would expect ldpi to come first.

When working with other emulators (HVGA and WVGA), they use their own suitable graphics discs ... this is only QVGA. The only code I see can affect this here (based on documents)

I tested this with emulator 2.0 and 1.6, I get the same result.

Any ideas? Thank you very much.

+5
source share
2 answers

It seems that I should enter the density manually.

If I just select QVGA as Skin from the Built-in drop-down list, it sets 120 as the value for the abstract LCD density, but it doesn't seem to work ...

So, I delete this property and add it back, and then change the value to 120. Many thanks to Dave for your direction.

+1
source

Check the setting hw.lcd.densityin config.inifor QVGA AVD. If this is incorrectly installed, the emulator may not work as a device with a low density. It should be 120.

Android SDK AVD Manager, Eclipse , android :

alt text

+1

All Articles