My company ships an Android app preloaded on an Android device to use with some industrial production equipment we make. We have both "phone" and "tablet" format devices, devices of different resolutions, locales, etc. So I'm familiar with having different xml folders for "layout" "layout-land", different image resources for "drawable-hdpi", "drawable-mdpi"; different language resources for "values-ru", values-ro", etc.
Now we have a customer that wants us to load our app on their own somewhat oddball aspect-ratio and resolution Android device, which they will supply us with, so I want to make a custom layout just for that device.
Assuming I make a layout folder called "layout-custom1", how do I tell my code to use that layout folder instead of defaulting to the regular layout or layout-land folders? I'd like to do it in just one place in my code because our app has a zillion screens/Activities and I'd prefer to not have to do it in before calling every setContentView().
And on that subject, what call can I make in my Java to ask what device I'm running on?
Edit: I'd prefer to avoid having different APKs because that will be a headache for our production staff.