Hi, is there a way for me to detect that the OS is shutting down so I can take steps to save data I have in memory? I have an app which runs a service and is set to startup at boot. The user may never launch the UI so I can't count on Activity_Pause as it never fires. I tried the Service_Destroy events in both my service module and the Stater module but they don't fire either.
Do I have any way to know that the app (and its service) is being terminated as a result of a device reboot?
You should expect your app to be killed without any indication.
- Save the data every 10 seconds.
- Use KVS2 which is based on a SQLite database so everything is stored all the time.
You should expect your app to be killed without any indication.
- Save the data every 10 seconds.
- Use KVS2 which is based on a SQLite database so everything is stored all the time.