I’d like to test my app against large devices. I’ve got /layout-large/ folder and AVD(WVGA854) launching with -scale 160 dpi parameter, but for some reason it doesn’t pick the right layout preferring /layout/ folder instead.
I’d like to test my app against large devices. I’ve got /layout-large/ folder and
Share
large means at least 640dp x 480dp, note “dp”, not “pixels”.
Your WVGA854 is 854 pixels so with 160 dpi you should get large (854dp which is greater than 640dp)
Are you sure you are launching with 160dpi? Are you using the eclipse plugin and launching from there, or the command line? Most devices with 854 are probably around hdpi (~240dpi) so make sure you are not getting any presets from that. Does it say screen size anywhere, that’s a hint if so.
Also note that since Android 3.2 “large” etc are not the preferred way to do this:
http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
In short, its now related to the width instead.