only portrait mode android studio
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>
only portrait mode android studio
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>
how to fix portrait orientation for android apps
<activity
android:name="com.example.demo_spinner.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<!-- Do this in AndroidMainifest.xml-->
<!--Additionaly, you can also use screenOrientation="sensorPortrait"
if you want to enable rotation by 180 degrees.-->
<!--android:screenOrientation="nosensor"
This will lead to forcing your app to portrait on most phones
and landscape on tablets. -->
how to make android app only portrait
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us