This commit is contained in:
laoyuyu
2018-06-01 19:16:31 +08:00
parent 703078e750
commit 2e4ad16f3e
9 changed files with 36 additions and 25 deletions

View File

@@ -38,7 +38,7 @@ public class AnyRunnModule {
}
@Download.onTaskRunning protected void running(DownloadTask task) {
Log.d(TAG, "running");
Log.d(TAG, "runningPercent = " + task.getPercent());
}
@Download.onTaskResume void taskResume(DownloadTask task) {
@@ -68,7 +68,7 @@ public class AnyRunnModule {
.load(url)
//.addHeader("Accept-Encoding", "gzip")
.setRequestMode(RequestEnum.GET)
.setFilePath(Environment.getExternalStorageDirectory().getPath() + "/ggsg12345678.apk")
.setFilePath(Environment.getExternalStorageDirectory().getPath() + "/abcd.mp4")
//.resetState()
.start();
//String[] urls = new String[] {