分块下载实现

This commit is contained in:
laoyuyu
2018-06-19 20:58:07 +08:00
parent ac5e236664
commit 7bac199856
17 changed files with 391 additions and 133 deletions

View File

@@ -65,11 +65,11 @@ public class AnyRunnModule {
void start(String url) {
mUrl = url;
String path = Environment.getExternalStorageDirectory().getPath() + "/abcds.exe";
File file = new File(path);
if (file.exists()) {
file.delete();
}
String path = Environment.getExternalStorageDirectory().getPath() + "/abcds.apk";
//File file = new File(path);
//if (file.exists()) {
// file.delete();
//}
Aria.download(this)
.load(url)
//.addHeader("Accept-Encoding", "gzip")