You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (info.file.exists() && info.file.length() == info.totalBytes) {
Log.d(TAG, "The file which we want to download was already here.");
return;
}
上边这个地方已经下载过了仅仅是Log提示,不能满足我现在的需求,我用这个库做版本更新,下载apk成功后没有安装退出了APP,再进来提示更新时又执行下载,这时只有onPrepare()回调执行了,完了就提示上边这个了,但是我希望能提示我已经下载好了可以直接安装,我觉得有两个方案:1. 这里直接回调onFinish(File file),这样是可行的但是逻辑不够合理; 2. 加个回调onAlreadyExists(File file) 或者 onDownloaded(FIle file)之类的。
上边这些只是我个人的想法,不知道合不合理,盼答复!
The text was updated successfully, but these errors were encountered:
if (info.file.exists() && info.file.length() == info.totalBytes) {
Log.d(TAG, "The file which we want to download was already here.");
return;
}
上边这个地方已经下载过了仅仅是Log提示,不能满足我现在的需求,我用这个库做版本更新,下载apk成功后没有安装退出了APP,再进来提示更新时又执行下载,这时只有onPrepare()回调执行了,完了就提示上边这个了,但是我希望能提示我已经下载好了可以直接安装,我觉得有两个方案:1. 这里直接回调onFinish(File file),这样是可行的但是逻辑不够合理; 2. 加个回调onAlreadyExists(File file) 或者 onDownloaded(FIle file)之类的。
上边这些只是我个人的想法,不知道合不合理,盼答复!
The text was updated successfully, but these errors were encountered: