Android Studio Portrait Modemeeee

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