1. 程式人生 > >file-downloader相關問題

file-downloader相關問題

方法 filename edi art build sta lena pan ade

2017-05-24

file-downloader框架中,如果你想用FileDownloader中的createAndStart(String url, String saveDir, String fileName)方法的話,切記。不要在之前調用configFileDownloadDir方法為它設置默認下載目錄,要不然createAndStart失效。

FileDownloadConfiguration.Builder builder = new FileDownloadConfiguration.Builder(this);
builder.configFileDownloadDir(downloadDir);
FileDownloadConfiguration configuration 
= builder.build(); FileDownloader.init(configuration);

file-downloader相關問題