From c4408a817ba29a89802b600767b9e9a9d3c0203b Mon Sep 17 00:00:00 2001 From: Raul Rabadan Arroyo Date: Sat, 26 Apr 2025 23:21:50 +0200 Subject: [PATCH] Make the example android app explicitly handle some device config change events to avoid getting the activity destroyed (#18839) # Objective Fixes #18316 ## Solution Add android:configChanges="orientation|screenSize" to the AndroidManifest.xml as indicated in https://stackoverflow.com/a/3329486 to avoid the GameActivity from getting destroyed, making the app stuck/crash. ## Testing I checked the results in my phone and after adding the config change the issue went away. The change is relatively trivial, so there shouldn't be the need to make a lot more testing. --- examples/mobile/android_example/app/src/main/AndroidManifest.xml | 1 + .../android_example_native/app/src/main/AndroidManifest.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/mobile/android_example/app/src/main/AndroidManifest.xml b/examples/mobile/android_example/app/src/main/AndroidManifest.xml index 159bfbe18f..38861e3924 100644 --- a/examples/mobile/android_example/app/src/main/AndroidManifest.xml +++ b/examples/mobile/android_example/app/src/main/AndroidManifest.xml @@ -11,6 +11,7 @@