Aspsine / MultiThreadDownload

Android Multi-Thread Download library
908 stars 285 forks source link

Does it support multi thread per a download task? How to config? #67

Closed Khang-NT closed 8 years ago

Aspsine commented 8 years ago

Yes, it does.

private void initDownloader() {
    DownloadConfiguration configuration = new DownloadConfiguration();
    // this is the thread num in thread pool
    configuration.setMaxThreadNum(10);
    // set thread num 1
    configuration.setThreadNum(1);
    DownloadManager.getInstance().init(getApplicationContext(), configuration);
}
Khang-NT commented 8 years ago

Great! Thank you.