I know that in order for me to force the app to be in a certain orientation then I do this in the manifest file for each activity: android:screenOrientation=”portrait”
My question is, if I want to set the orientation to landscape ONLY for large screens, then how can I do it? What I know is that there are layout folders specific for each screen size but what about manifest file? It is common for all screen sizes.
Any suggestions?
Thanks
I know that in order for me to force the app to be in
Share
Check for the device that is being used through the code. A sample code for device checking is:
or
This code is basically for checkinh if its honeycomb tabor not. After checking this set the orientation through code: