1<activity android:name=".SomeActivity"
2 android:label="@string/app_name"
3 android:screenOrientation="portrait" />
1// add this in your manifest.xml
2
3<activity
4 android:name=".MainActivity"
5 <...other code>
6 android:configChanges="orientation" //<--ADD THIS
7 android:screenOrientation="portrait"> //<--ADD THIS