1<activity android:name=".SomeActivity"
2 android:label="@string/app_name"
3 android:screenOrientation="portrait" />
1//put this <
2this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
3 // > In your MainActivity.java
1<!-- inside of your AndroidManifest.xml -->
2<activity android:name=".MainActivity"
3 android:screenOrientation="portrait"/>