You have two options for achieving the result.
- You can specify per activity base orientation requirement in manifest file. You can select here what orientation you want to support for which activity.
e.g.
<activity
android:name=".Some_Act"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
- You can create a base activity and specify the orientation in that activity. Later you can inherit that activity in other activities of your application. You can choose suitable base class to get the desired behavior.