android :: NativeAppGlue :: saved_state
It is NULL if there was no state. You can use this as you need; the memory will remain around until you call android_app_exec_cmd() for APP_CMD_RESUME, at which point it will be freed and savedState set to NULL. These variables should only be changed when processing a APP_CMD_SAVE_STATE, at which point they will be initialized to NULL and you can malloc your state and place the information here. In that case the memory will be freed for you later.
# This is the last instance's saved state, as provided at creation time.
# It is NULL if there was no state. You can use this as you need; the
# memory will remain around until you call android_app_exec_cmd() for
# APP_CMD_RESUME, at which point it will be freed and savedState set to NULL.
# These variables should only be changed when processing a APP_CMD_SAVE_STATE,
# at which point they will be initialized to NULL and you can malloc your
# state and place the information here. In that case the memory will be
# freed for you later.
fun saved_state: Pointer `{ return self->savedState; `}
lib/android/native_app_glue.nit:344,2--352,56