问题
I have looked around SO and found how to lock my entire application to Landscape by editing the Manifest file. However, this is not what I want.
I want every activity to be locked portrait, except for one, which will be locked to landscape.
回答1:
In your manifest file, find your Activity declaration and use the following:
<activity
android:name=".ActivityName"
android:label="@string/app_name"
android:screenOrientation="landscape" >
</activity>
来源:https://stackoverflow.com/questions/13569052/locking-the-screen-to-landscape-for-only-one-activity