Home How can I disable landscape mode in Android? byMahabubur Rahman -June 04, 2023 0 Add android:screenOrientation="portrait" to the activity in the AndroidManifest.xml. For example:<activity android:name=".SomeActivity" android:label="@string/app_name" android:screenOrientation="portrait" /> Facebook Twitter