I'm making an android app but it works best if the phone/tablet is flipped horizontal.. how do I make the screen lock at that and make it to where it doesn't flip going vertical?
Asked
Active
Viewed 139 times
3 Answers
2
Set android:screenOrientation="landscape"
in the <activity>
element of your AndroidManifest.xml
file.

aganders3
- 5,838
- 26
- 30
1
A quick search through past Stack Overflow questions turns up this answer:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
-
Thanks, Sorry I tried looking but I didn't know how to word it. – user1042757 Nov 22 '11 at 01:58
0
Another option is to only define a activity layout for the landscape orientation. res/layouts-landscape.

Wizetux
- 756
- 3
- 12