Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow background downloads #26

Open
damccull opened this issue Jan 19, 2014 · 4 comments
Open

Allow background downloads #26

damccull opened this issue Jan 19, 2014 · 4 comments

Comments

@damccull
Copy link
Contributor

Currently the app seems to download with a separate thread updating a modal progress bar dialog. This is fine as long as you want to leave the app visible during the entire download process, but this also prevents users from using previously downloaded resources.

I would like to see a downloader implemented as a service that displays current status in the notification bar (unless the download resources activity is the active one) instead of the modal dialog. This would allow users to safely download data in the background while using other apps without fear of the download being killed in the middle when android closes the app because it needs more memory. Additionally, this would allow users to begun a download for a new area the don't yet have, while simultaneously working on a flight plan in an area they do have.

@apps4av
Copy link
Owner

apps4av commented Jan 19, 2014

The only thing that stops us from using notification bar download is the SDK version. That feature is truly bug free operational only on/after Android version 4.0. The Android download manager for older versions is buggy.

@damccull
Copy link
Contributor Author

Perhaps I was unclear in what I meant by downloader. The built in downloader app is crap on almost every version of android. I simply was suggesting to move your existing asynctask or thread that handles download into a service class. Then launch the service as a started service and let it do the download. That service can be responsible for updating the notification it self instead of updating a dialog.

If I'm unaware of some bug with the notification bar in older versions of Android, then I'd love to know about that. Just trying to clarify my suggestion.

@apps4av
Copy link
Owner

apps4av commented Jan 20, 2014

Downloading from the service is a good idea. It will keep all download threads going regardless of the app state. Yes, notification bar has no issues.
Added to list of things to do.

@kendallcrews
Copy link

I'd also suggest that Avare could download new resources in the background but not use them until approved by the user. That way the user has final say on what is in use, but doesn't have to wait around for downloads.

r-oleary added a commit to r-oleary/avare that referenced this issue Feb 19, 2017
* damp inclinometer, bug fixes. 7.6.4

* plates also show over maps now. use layer feature Plate.

* fixed afd over map instead of plate

* 7.6.5

* Add plate option to Layers list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants