Reputation: 5872
I try to understand the pros and cons of different ways to download a file using an android app.
I found several ways:
Does anyone with experience in the subject can tell me reasons for choosing one way over the other?
Upvotes: 6
Views: 2800
Reputation: 39836
Is the file a user file (meaning the user should have access to the file, e.g. a photo or document that is for him to have)?
Download
app, etc.on your own
or via OkHttp will work, but OkHttp is a great library very well developed, stable, fast and will minimise your headaches during development. (did you know that starting in Lollipop, Android uses internally the OkHttp library? That's how good it is)Upvotes: 11