I have layout that is called Main.XML
and I set the orientation to portrait in my AndroidManifest.xml
. I designed this layout for Honeycomb too and
I think this could be done like this:
Detect screen size programmtically in you onCreate. http://www.mail-archive.com/android-developers@googlegroups.com/msg144381.html
Set orientation according to screen size, like this:
if(screen size is large) setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); else setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
Not sure if it's the best way though.