Android Question Force Stop or Restart question

Scantech

Well-Known Member
Licensed User
I have an app that tracks Distance and by exiting app or every 2 minutes it will store the data in a file.

My question is when the app is restarted i like to find a way to store the data in the file before it is being destroyed. Is there a way?

By the way, the service module is running and does file saving every 2 minutes.
 

Scantech

Well-Known Member
Licensed User
B4X:
Sub Service_TaskRemoved
    'This event will be raised when the user removes the app from the recent apps list.
End Sub
I dont know whether you are able to save the data here. You need to try.
That's a negative.

Will not trigger with either force stop or restarting. Tested with Android 7, I will try Android 8 later on
 
Top