|
|
@ -50,7 +50,8 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> { |
|
|
|
private static final String DOWNLOAD_URL = |
|
|
|
private static final String DOWNLOAD_URL = |
|
|
|
//"http://kotlinlang.org/docs/kotlin-docs.pdf";
|
|
|
|
//"http://kotlinlang.org/docs/kotlin-docs.pdf";
|
|
|
|
//"https://atom-installer.github.com/v1.13.0/AtomSetup.exe?s=1484074138&ext=.exe";
|
|
|
|
//"https://atom-installer.github.com/v1.13.0/AtomSetup.exe?s=1484074138&ext=.exe";
|
|
|
|
"http://static.gaoshouyou.com/d/22/94/822260b849944492caadd2983f9bb624.apks"; |
|
|
|
//"http://static.gaoshouyou.com/d/22/94/822260b849944492caadd2983f9bb624.apks";
|
|
|
|
|
|
|
|
//"http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip";
|
|
|
|
//"https://yizi-kejian.oss-cn-beijing.aliyuncs.com/qimeng/package1/qmtable11.zip";
|
|
|
|
//"https://yizi-kejian.oss-cn-beijing.aliyuncs.com/qimeng/package1/qmtable11.zip";
|
|
|
|
//"http://rs.0.gaoshouyou.com/d/04/1e/400423a7551e1f3f0eb1812afa1f9b44.apk";
|
|
|
|
//"http://rs.0.gaoshouyou.com/d/04/1e/400423a7551e1f3f0eb1812afa1f9b44.apk";
|
|
|
|
//"http://58.210.9.131/tpk/sipgt//TDLYZTGH.tpk"; //chunked 下载
|
|
|
|
//"http://58.210.9.131/tpk/sipgt//TDLYZTGH.tpk"; //chunked 下载
|
|
|
@ -60,6 +61,7 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> { |
|
|
|
//"http://apk500.bce.baidu-mgame.com/game/67000/67734/20170622040827_oem_5502845.apk?r=1";
|
|
|
|
//"http://apk500.bce.baidu-mgame.com/game/67000/67734/20170622040827_oem_5502845.apk?r=1";
|
|
|
|
//"https://dl.genymotion.com/releases/genymotion-2.12.1/genymotion-2.12.1-vbox.exe";
|
|
|
|
//"https://dl.genymotion.com/releases/genymotion-2.12.1/genymotion-2.12.1-vbox.exe";
|
|
|
|
//"http://9.9.9.59:5000/download/CentOS-7-x86_64-Minimal-1804.iso";
|
|
|
|
//"http://9.9.9.59:5000/download/CentOS-7-x86_64-Minimal-1804.iso";
|
|
|
|
|
|
|
|
"http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip"; |
|
|
|
@Bind(R.id.start) Button mStart; |
|
|
|
@Bind(R.id.start) Button mStart; |
|
|
|
@Bind(R.id.stop) Button mStop; |
|
|
|
@Bind(R.id.stop) Button mStop; |
|
|
|
@Bind(R.id.cancel) Button mCancel; |
|
|
|
@Bind(R.id.cancel) Button mCancel; |
|
|
@ -249,7 +251,7 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> { |
|
|
|
private void startD() { |
|
|
|
private void startD() { |
|
|
|
//Aria.get(this).setLogLevel(ALog.LOG_CLOSE);
|
|
|
|
//Aria.get(this).setLogLevel(ALog.LOG_CLOSE);
|
|
|
|
//Aria.download(this).load("aaaa.apk");
|
|
|
|
//Aria.download(this).load("aaaa.apk");
|
|
|
|
String path = Environment.getExternalStorageDirectory().getPath() + "/ggsg10.apk"; |
|
|
|
String path = Environment.getExternalStorageDirectory().getPath() + "/ggsg11.apk"; |
|
|
|
//File file = new File(path);
|
|
|
|
//File file = new File(path);
|
|
|
|
//if (file.exists()){
|
|
|
|
//if (file.exists()){
|
|
|
|
// file.delete();
|
|
|
|
// file.delete();
|
|
|
@ -261,9 +263,8 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> { |
|
|
|
//.addHeader("Accept-Encoding", "gzip, deflate")
|
|
|
|
//.addHeader("Accept-Encoding", "gzip, deflate")
|
|
|
|
//.addHeader("DNT", "1")
|
|
|
|
//.addHeader("DNT", "1")
|
|
|
|
//.addHeader("Cookie", "BAIDUID=648E5FF020CC69E8DD6F492D1068AAA9:FG=1; BIDUPSID=648E5FF020CC69E8DD6F492D1068AAA9; PSTM=1519099573; BD_UPN=12314753; locale=zh; BDSVRTM=0")
|
|
|
|
//.addHeader("Cookie", "BAIDUID=648E5FF020CC69E8DD6F492D1068AAA9:FG=1; BIDUPSID=648E5FF020CC69E8DD6F492D1068AAA9; PSTM=1519099573; BD_UPN=12314753; locale=zh; BDSVRTM=0")
|
|
|
|
//.useServerFileName(true)
|
|
|
|
.useServerFileName(true) |
|
|
|
//.setRequestMode(RequestEnum.GET)
|
|
|
|
.setFilePath(path, true) |
|
|
|
.setFilePath(path, false) |
|
|
|
|
|
|
|
//.asPost().setParam("key", "value")
|
|
|
|
//.asPost().setParam("key", "value")
|
|
|
|
//.setExtendField("{\n"
|
|
|
|
//.setExtendField("{\n"
|
|
|
|
// + "\"id\":\"你的样子\"\n< > "
|
|
|
|
// + "\"id\":\"你的样子\"\n< > "
|
|
|
|