BasicAirData / GPSLogger

A GPS logger for Android mobile devices
http://www.basicairdata.eu/projects/android/android-gps-logger/
GNU General Public License v3.0
392 stars 121 forks source link

Keep the cache clean #196

Closed GrazianoCapelli closed 1 year ago

GrazianoCapelli commented 1 year ago

The cache is used by GPS Logger to save the exported files for the View and the Share features. Currently the cached files are not managed: they are simply saved and left there. Android system usually deletes the cached files of the apps to free space when needed.

We could keep clean the GPS Logger's cache by deleting the old files, that are unused (for example the files with an age of 2 days or more). The files are unused because the app re-exports the files every time the user views or shares them.

Two good moments to clean the cache are at the start and when the app is closed.