Stypox/dicio-android

Download model button not giving error on no network

pabloski80 opened this issue · 2 comments

Pressing download model button displays 'downloading" popup in a bottom but does download nothing.
Samsung j5. Android 6.0.

Hmm. There must have been some gltch here with my network or left disk space or 3rd cause. Seems to work now. S4 ie Android 5.0.1 download still borked and crashes APP as per other issue.

The way Android's DownloadManager works is that when the download is queued but there is no network available, the download is silently paused without showing any notification (source). As soon as the network is available the download starts and a notification is shown. All of this is not handled by me but by Android, so there is not much that I can do about it. If in the future model downloading will be refactored, it might be a good idea not to use the DownloadManager API but rather manually implementing file download.