android disable landscape mode
Add the following attribute to the activity tag in the AndroidManifest.xml file: android:screenOrientation="portrait"
If you want to disable landscape mode for a specific activity, add the following attribute to the activity tag in the AndroidManifest.xml file: android:screenOrientation="portrait"
If you want to disable landscape mode for the entire application, add the following attribute to the application tag in the AndroidManifest.xml file: android:screenOrientation="portrait"