Android Studio Modeeeee

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