Problem with orientation in Android App

Hello,

i set the Android App on fixed Portrait (not Sensor) but when i put it on my tablet it still rotates with the device. How can i stop it from rotating?

Thanks

Hello there @Roby77k!

Since you have set the app to Fixed Portrait in project settings, but the tablet keeps forcing rotation, it’s possible that your device and UE are clashing somewhere. Let’s take a few steps to resolve it:

  • First of all, go to Project Settings > Platforms > Android, and set “Default Orientation” to Portrait. Then, under “Supported Orientations”, make sure only Portrait is checked, turn off all other options

  • After that, rebuild your app, uninstall the old one from your tablet, then install the new build, and test for rotation

  • If the issue persists, it’s possible that certain elements from the previous build remain present in your project. Perform a cache clear, via deleting folders “Intermediate” and “Binaries” from your main directory, then rebuild the app again

  • You can also test in other android devices, as a native setting from your table could be the root cause. If this is the case, it should be possible to enforce settings on said device by changing the AndroidManifest.xml file with one of the following lines:

android:screenOrientation="portrait"
android:resizeableActivity="false"