1
我需要創建某種下載管理器來通過URL加載大量文件並將它們保存在SD卡上。我在Android SDK中發現了兩個類,因爲我認爲能幫助我在這種情況下:Android:下載很多文件並將它們保存在SD卡上
也許有人使用它們,可以分享他的經驗是什麼更好的或者可能有更好的外部解決方案?
在此先感謝您的幫助。
我需要創建某種下載管理器來通過URL加載大量文件並將它們保存在SD卡上。我在Android SDK中發現了兩個類,因爲我認爲能幫助我在這種情況下:Android:下載很多文件並將它們保存在SD卡上
也許有人使用它們,可以分享他的經驗是什麼更好的或者可能有更好的外部解決方案?
在此先感謝您的幫助。
您也可以使用系統的DownloadManager。
DownloadManager mgr = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);
向該服務發佈DownloadManager.Request會導致下載顯示在通知區域中。