We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v1.0.7
task = DownloadTask.Builder(url, File(path)) .setFilename(filename) .setMinIntervalMillisCallbackProcess(200) .setPassIfAlreadyCompleted(false) .build()
重启应用后,怎么能重新初始化一个能断点续传的DownloadTask
DownloadTask this.id = OkDownload.with().breakpointStore().findOrCreateId(this);
this.id = OkDownload.with().breakpointStore().findOrCreateId(this);
如果重新初始化了,在BreakPointStore会找不到id,然后就不能续传了, 请问我理解对吗?
DownloadCall
BreakpointInfo info; try { BreakpointInfo infoOnStore = this.store.get(this.task.getId()); if (infoOnStore == null) { info = this.store.createAndInsert(this.task); } else { info = infoOnStore; } this.setInfoToTask(info);
有其他方案吗?感谢
The text was updated successfully, but these errors were encountered:
No branches or pull requests
OkDownload Version
v1.0.7
Problem Describe
重启应用后,怎么能重新初始化一个能断点续传的DownloadTask
DownloadTask
this.id = OkDownload.with().breakpointStore().findOrCreateId(this);
如果重新初始化了,在BreakPointStore会找不到id,然后就不能续传了, 请问我理解对吗?
DownloadCall
有其他方案吗?感谢
The text was updated successfully, but these errors were encountered: