what is multi-threaded multi-Task download framework:
The Android multi-threaded multitasking download framework encapsulates a download tool class that supports multi-threaded downloads, download task queues, download progress updates, cancel downloads, and more. It can be used for download of app market app, music download and so on.
Why a multi-threaded multi-tasking download framework is required:
we need to download the APK when we develop the Android application market, this time the user wants to be able to download multiple apk simultaneously and display the correct progress bar information, and the download speed is fast, then we need the multi-threaded multi-Task download framework to support these functions , to achieve a good use User experience.
How to implement multithreaded multi-task Download framework:
The knowledge points involved:
1. thread operation downloadtask
2. Observer mode observer < Span style= "font-size:18px" >ui < Span style= "font-size:18px" > Progress information, etc.)
3. Multi- threaded multipart download downloadthread
4. operation of the task queue Downloadtaskqueue
The code implementation is implemented in the next section.
Implementation of Android Multi-Task Download framework (i)