Ability to draw using mdpi instead of hdpi
I have installed my project using different available directories (ldpi, mdpi and hdpi). I have a background png with two different resolutions: 320x480 in drawable-mdpi folder and 480x800 in drawable-hdpi. Both have the same filename. When I try to load the background as a style in the manifest (using android: windowBackground in style), if I use the emulator for 1.6 device, I get the correct (mdpi) loaded. However, if I try this on my Nexus, I see that the correct background from the hdpi folder loads correctly at first, but it quickly switches to mdpi. I also tried setting the background in the layout XML (android: src = ...), but in this case only the mdpi is loaded. If I remove the mdpi version everything loads fine. Any idea on what the problem is? why is it loading mdpi?
a source to share