Scenario: There are 1000 pictures on the server. It’s not a good idea to download all of the 1000 pictures at one time. Usually, the API will fetch 100 images per time. And then fetch more images based on the request.
In this part, I’d like to explain these concepts in a store which make it easier to understand.
All of this concepts are related to a special thread — Message loop thread.
Some useful notes when I learn the retrofit.
In Retrofit github repository, there are some samples. The most basic one is the SimpleService.java example. Click here to check the example. (All code in this Basic Usage…