Android Question prevent "killing previous instance (main)"

Erel

Administrator
Staff member
Licensed User
A properly built application should be able to handle this case.
It is not possible to prevent it from happening.

Which issue have you encountered?
 

JDS

Active Member
Licensed User
We've got the situation that at a certain point that the driver is unloading his truck. We are timing this so we set date, time and a identifier (and save it to a file). The driver has to wait (and needs to get back a few menu's). However he gets there faster by swiping down and tap the notification. The app gets killed and starts but the "unloading" work is not ended.
If the driver had used "back" than the "work" was properly ended.

We want a chronologic time schedule of the driver.
07:00 - 07:45 - driving
07:45 - 07:55 - unloading
07:55 - 08:10 - driving
08:10 - 08:30 - pause
etc.

Any thoughts?
 

Erel

Administrator
Staff member
Licensed User
1. Move whatever you can to the starter service.
2. Save the UI state in Activity_Pause and restore it in Activity_Create.
 
Top