InfiniteImp Member Licensed User Longtime User Oct 2, 2017 #1 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? Thanks.
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? Thanks.
mangojack Expert Licensed User Longtime User Oct 3, 2017 #2 this might be of interest .. https://www.b4x.com/android/forum/threads/question-about-reboot.78429/#post-497274 Upvote 0
this might be of interest .. https://www.b4x.com/android/forum/threads/question-about-reboot.78429/#post-497274
InfiniteImp Member Licensed User Longtime User Oct 3, 2017 #3 Intents are something I haven't played with yet. Still really on my first app. Time to do some reading! Thanks mj. Upvote 0
Intents are something I haven't played with yet. Still really on my first app. Time to do some reading! Thanks mj.
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2017 #4 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. Upvote 0
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.
InfiniteImp Member Licensed User Longtime User Oct 3, 2017 #5 Erel said: 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. Click to expand... Thanks for that. I'm not familiar with KVS2. Where do I find details? Upvote 0
Erel said: 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. Click to expand... Thanks for that. I'm not familiar with KVS2. Where do I find details?
NJDude Expert Licensed User Longtime User Oct 3, 2017 #6 There's a box on top of the screen labeled SEARCH, type KVS2 there and prepare to be amazed. Trust me, the search feature of the forum really works. Upvote 0
There's a box on top of the screen labeled SEARCH, type KVS2 there and prepare to be amazed. Trust me, the search feature of the forum really works.
InfiniteImp Member Licensed User Longtime User Oct 3, 2017 #7 NJDude said: There's a box on top of the screen labeled SEARCH, type KVS2 there and prepare to be amazed. Trust me, the search feature of the forum really works. Click to expand... Not as amazed as I expected. One match, and it appears to be a member question. What I was really hoping for was documentation on how to implement it. Upvote 0
NJDude said: There's a box on top of the screen labeled SEARCH, type KVS2 there and prepare to be amazed. Trust me, the search feature of the forum really works. Click to expand... Not as amazed as I expected. One match, and it appears to be a member question. What I was really hoping for was documentation on how to implement it.
NJDude Expert Licensed User Longtime User Oct 3, 2017 #8 Really dude?, the auto-completion is not all, hit ENTER, and peruse the results. The answer is out there. Upvote 0
Really dude?, the auto-completion is not all, hit ENTER, and peruse the results. The answer is out there.