Android Studio Portrait Modeeee

  //in your android manifest file
  <activity android:name=".MainActivity"
            android:screenOrientation="nosensor">
        </activity>
abdullah