disable landscape mode in all activities code example
Example: android disable landscape mode
<activity android:name=".SomeActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" />
<activity android:name=".SomeActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" />