bevy/examples/mobile
Raul Rabadan Arroyo c4408a817b
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.
2025-04-26 21:21:50 +00:00
..
android_basic Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
android_example Make the example android app explicitly handle some device config change events to avoid getting the activity destroyed (#18839) 2025-04-26 21:21:50 +00:00
android_example_native Make the example android app explicitly handle some device config change events to avoid getting the activity destroyed (#18839) 2025-04-26 21:21:50 +00:00
bevy_mobile_example.xcodeproj Link iOS example with rustc, and avoid C trampoline (#14780) 2025-03-17 21:14:07 +00:00
ios-src Link iOS example with rustc, and avoid C trampoline (#14780) 2025-03-17 21:14:07 +00:00
src Link iOS example with rustc, and avoid C trampoline (#14780) 2025-03-17 21:14:07 +00:00
.gitignore
build_rust_deps.sh Link iOS example with rustc, and avoid C trampoline (#14780) 2025-03-17 21:14:07 +00:00
Cargo.toml Link iOS example with rustc, and avoid C trampoline (#14780) 2025-03-17 21:14:07 +00:00
Makefile