Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能自定义文件的下载路径和文件名吗? #15

Open
rehan91 opened this issue Aug 23, 2016 · 0 comments
Open

不能自定义文件的下载路径和文件名吗? #15

rehan91 opened this issue Aug 23, 2016 · 0 comments

Comments

@rehan91
Copy link

rehan91 commented Aug 23, 2016

FileDownloader.detect(apkUrl, new OnDetectBigUrlFileListener() {
@OverRide
public void onDetectNewDownloadFile(String url, String fileName, String saveDir, long fileSize) {
// 如果有必要,可以改变文件名称fileName和下载保存的目录saveDir
FileDownloader.createAndStart(url, savePath, saveFileName);
}
@OverRide
public void onDetectUrlFileExist(String url) {
// 继续下载,自动会断点续传(如果服务器无法支持断点续传将从头开始下载)
FileDownloader.start(url);
}
@OverRide
public void onDetectUrlFileFailed(String url, DetectBigUrlFileFailReason failReason) {
// 探测一个网络文件失败了,具体查看failReason
}
});

这个好像也不起作用.....如何设置呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant