Como interromper a rotação da tela no código Android
android:screenOrientation="portrait"
Xenophobic Xenomorph
android:screenOrientation="portrait"
<!-- inside of your AndroidManifest.xml -->
<activity android:name=".MainActivity"
android:screenOrientation="portrait"/>
<activity
...
...
android:screenOrientation="nosensor">
android:screenOrientation="portrait or landscape"