Downloading multiple files simultaneously in Android applications

前端 未结 2 1027
予麋鹿
予麋鹿 2021-02-06 01:26

I\'m writing an application for Android which let users browse a list of files and download them. For every download, I created a thread and I download the file with an HttpURLC

2条回答
  •  醉梦人生
    2021-02-06 02:06

    You might want to check out the DownloadManager class in the android SDK.. Its only available above or equal api level 2.3 though.

    http://developer.android.com/reference/android/app/DownloadManager.html

    Some tutorials you might want to see..

    http://jaxenter.com/downloading-files-in-android.1-35572.html

    http://www.vogella.de/blog/2011/06/14/android-downloadmanager-example/

提交回复
热议问题