Here's a trick I started using which seemed to work quite well. Create a string (the app name works well if you have an Action Bar) that you can display on-screen (or just throw into a
Toast) that will quickly let you know from which of those very many
/resfolders your resources are being pulled out of.
For this demo, I have the following
As you can see, there are
strings.xmlfiles in each of the configurations I want to support. Each of these files will contain whatever description we want to see on the device or in the
Logs. In my case, I have custom strings for each form factor and orientation, which allows me to validate things easier. But this is particularly useful if the changes per form factor and orientation is subtle, such as dimensions.
Here's what it looks like for phones:
And here are the outputs for tablets:
Each of the
strings.xmlfiles contains just these two strings (sample taken from
Have fun debugging!
MultiDeviceSupport - Tablet Portrait Hello world on a tablet!