I'm developing a Android gps-data-logger, which saves the gps position in a database. I've the following problem:
If there is too much traffic in background, if there are too much app open and the gps-data-logger don't find the gps position shortly, the app is closed by system and if the user opens the app again, the app restarts.
How can I avoid the closing of my app in background?