For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Go to Edit > Project Settings > Player

  2. Select the Android tab

  3. Open Resolution and Presentation

  4. 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

  1. Go to Player > Android > Other Settings

  2. Scroll down to Configuration

  3. Make sure Resizable Window is:

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:

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

Setting
Location
Recommended

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