When the user does not finish the ride accordingly, the track gets uploaded incompletely. This means, we potentially lose data for further analyses. The idea is to make sure, the data gets updated in the shared preferences before closing the app. One potential solution is to use the app lifecycle. Important is that the atomicity of the data is kept.