fsj Member Licensed User Longtime User Oct 19, 2013 #1 Is it possible to shut down the app, when a user switch off the tablet? is there an event, when the user switch off the tablet?
Is it possible to shut down the app, when a user switch off the tablet? is there an event, when the user switch off the tablet?
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2013 #2 What do you mean with "switch off"? Turn off the screen or actually turn off the device? There isn't any event when the device turns off. Upvote 0
What do you mean with "switch off"? Turn off the screen or actually turn off the device? There isn't any event when the device turns off.
fsj Member Licensed User Longtime User Oct 20, 2013 #3 When the user press the button to turn off the device, i want to shut down the app, before the system shuts down Upvote 0
When the user press the button to turn off the device, i want to shut down the app, before the system shuts down
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2013 #4 I was mistaken in my previous post. There is a shutdown intent that you can intercept. However it is probably better to just save whatever you need in Activity_Pause. The reason is that the process might be killed before the shutdown event. Upvote 0
I was mistaken in my previous post. There is a shutdown intent that you can intercept. However it is probably better to just save whatever you need in Activity_Pause. The reason is that the process might be killed before the shutdown event.