Hi all,
I am looking for equivalent to UIApplicationExitsOnSuspend = false on Android.
So if my character is jumping, and while he is in the air you press Home button on your Android phone.
Can Android phones preserve that state in any way, so when you return by clicking on game icon your game continues from that place (i.e. character falls on the ground)?
That is exact what happens when you activate UIApplicationExitsOnSuspend = false on iOS.
Code from following post does not work, i.e when I press Home button, and rightafter press game icon: game restarts right from very beginning - i.e. splash screen.
https://forums.coronalabs.com/topic/37653-uiapplicationexitsonsuspend-not-working-on-android/
If above preserving app state is not possible, how to implement that when you press Home button user gets dialog: “Are you sure you want to exit?, {Y, N}” (and app exits only if user press “Y”) ?
Many, many thanks!
G