Assignment Requirement: Create a simple mobile application that:
- You can find fake responses for the list of videos and books in the attachments.
- Or use this api (https://nagwa.free.beeceptor.com/movies)
- You can choose one file to fake download.
- Show fake download percentage progress for item if the item is downloading.
- Mark the item that was downloaded, the
- Show all files
- User Can download one or multiple file
- show progress percatage when filed downloading (if content length of file known)
- show Indeterminate in progress (if content length not exist in file like google chrome )
- show complete after file downloaded.
- handle failure when problem happened
- Retry button to redownload file
Download File state | Download File for unknown file size | Download File when failure happend |
---|---|---|
- Kotlin
- Dagger2
- Rxjava2
- OkHttp
- Android Architecture Components
Clean Architecture with MVVM pattern in the presentation layer
When i search to how download file i found can make it with retrofit Stream or andoid downoad manager but i found solution from Jake Wharton that can download file with Okhttp only with progress and that link of File