Android 16 Compatibility Guide
Handling Screen Orientation and Resizable Activity Settings
Starting from Android 16 (API level 36), Android will ignore certain restrictions like fixed orientation and non-resizable windows on large-screen devices (foldables, tablets, etc.). To ensure your app works properly, you must update your Unity Player Settings.
✅ Step 1: Allow Flexible Screen Orientation
Default Orientation
Go to
Edit > Project Settings > Player
Select the Android tab
Open Resolution and Presentation
Set Default Orientation to:
✔ Auto Rotation
This prevents the system from locking the orientation to portrait or landscape, which may be ignored or cause layout issues on foldables.
✅ Step 2: Enable Resizable Activity
Resizable Window
Go to Player > Android > Other Settings
Scroll down to Configuration
Make sure Resizable Window is:
✔ Enabled (checked)
This ensures that your app can run in split-screen and multi-window modes, which is required on Android 16+ large screens.
⚠️ Why This Matters
If you leave the following settings:
<activity android:screenOrientation="portrait" android:resizeableActivity="false" />
Android 16 will ignore them on tablets and foldables, potentially breaking your layout. Unity may add these automatically unless you adjust your Player Settings as described.
🔍 Optional: Custom Manifest (Advanced)
If you're overriding the manifest manually:
Avoid hardcoding
android:screenOrientation
Set
resizeableActivity="true"
But remember: Unity Player Settings may overwrite your manifest unless you're using a custom mainTemplate.gradle and manifest override.
✅ Summary
Default Orientation
Player > Android > Resolution and Presentation
Auto Rotation
Resizable Window
Player > Android > Other Settings
Enabled ✔
By following these steps, you ensure your Unity app is ready for Android 16, and works properly across all screen sizes and form factors.
Last updated