OpenTracksApp / OSMDashboard

OpenStreetMaps Dashboard for OpenTracks
https://f-droid.org/de/packages/de.storchp.opentracks.osmplugin/
Apache License 2.0
82 stars 10 forks source link

Use download manager for offline map #403

Open pstorch opened 3 weeks ago

pstorch commented 3 weeks ago

To make map downloads more reliable and support resumption, use the android download manager. This is necessary for downloading large map files, such as India (1.3G), over unstable connections.

pstorch commented 3 weeks ago

What a pity. The Android DownloadManager can't download to destinations via the SAF Storage Access Framework. So I can't use it, or have to sacrifice the map sharing with other apps.

dennisguse commented 3 weeks ago

What about downloading the file via Androids Downloadmanager and then moving it?

pstorch commented 3 weeks ago

That's an option, but would require double storage space temporarily.

pstorch commented 3 weeks ago

I'm thinking about making the internal storage the default map/theme directory for downloads. That would simplify the onboarding of new users. Download maps from within the app only into this internal storage. Keep the map/theme directory setting for additional (readonly) map/theme sources. Would only be needed by experienced users who share the maps between apps.