android app only in portrait mode code example
Example: only portrait mode android studio
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>