An example app to download pdf from url and saved into your internal storage.
This project is for downloading items(songs, images etc) in Android using RxJava2. There are, however 2 conditions which I have set for downloading.
1) Only 2 items can be downloaded at a time. So even if the user clicks multiple items to download, only 2 of them will be actually downloaded at a time and the rest of the downloads will be en queued.
2) The download percent is shown to the user. But only if the difference between the current percentage and the previously shown percentage is greater than 5 percent.