Android: control activity re-creation

This commit is contained in:
Sylvain authored and Sam Lantinga committed 2023-05-12 07:48:33 -07:00
1 parent 2e6c48dcb4
commit dfd80f3d76
5 files changed
+71 -1

No files matched your search

+7
View File
@@ -218,6 +218,13 @@ You should not use the SDL renderer API while the app going in background:
GL context is restored, and the SDL renderer API is available (unless you
receive SDL_EVENT_RENDER_DEVICE_RESET).
Activity lifecyle
================================================================================
You can control activity re-creation (eg. onCreate()) behaviour. This allows to keep
or re-initialize java and native static datas, see SDL_hints.h:
- SDL_HINT_ANDROID_ALLOW_RECREATE_ACTIVITY
Mouse / Touch events
================================================================================