Retrofit 2 — Download Files with Progress Updates

In a previous tutorial you've learned how to download files with Retrofit. Depending on the use case and size of the file, you should consider displaying a download progress to the user. Your users appreciate seeing an informative download status view, instead of being in the dark and not knowing what they're waiting for. In this tutorial, you'll learn how you can implement exactly this informative download progress feature. Here's a preview:

Preview Download File

Don't forget to check our other Retrofit tutorials:

Retrofit Series Overview

  1. Introduction to Call Adapters (Coming soon)
  2. Custom Call Adapter to Separate OnResponse Callback (Coming soon)
  3. How to Integrate RxJava 1.x Call Adapter (Coming soon)
  4. How to Integrate RxJava 2.x Call Adapter (Coming soon)
  5. How to Integrate Guava Call Adapter (Coming soon)
  6. Custom Call Adapter to Separate Network and Gson Errors (Coming soon)
  1. Callbacks (Coming soon)
  2. Annotations (Coming soon)
  3. Fluent Interface with Builders (Coming soon)


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $12/mo

Explore the Library

Find interesting tutorials and solutions for your problems.

Miscellaneous