file-downloader相关问题

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);

 

posted on 2017-05-24 20:07  angelshelter  阅读(200)  评论(0编辑  收藏  举报

导航