To be clear, it was me who said that
William Lancee said:
So no, when you go back, it is as you've never left.
@MicroDrie
2. Closing a B4XPage does not destroy the page (which is just an instance of a class), and keeps its data intact.
3. I quoted
@Erel: 'The pages context will not be paused or destroyed, until the process itself is killed.'
Now what kills a process is the OS, and how and when it does so is complicated and varies with versions of Android.
Some scenarios:
1. A crash
2. ExitApplication when there is only one Activity (at least in earlier versions of Android)
3. User telling the OS to remove the app, using the tools menu
4. other situations depending on Android version
As expected, all of these require critical data and app state to be saved (possibly in a KVS2 object/file).
But your App may not know when that will happen! So save critical data when it is created, not when you exit.