This commit is contained in:
AriaLyy
2017-08-15 10:41:20 +08:00
parent f5422eb287
commit b7b55e42fc
15 changed files with 96 additions and 27 deletions

View File

@ -31,7 +31,7 @@
<!--是否需要转换速度单位转换完成后为1b/s、1kb/s、1mb/s、1gb/s、1tb/s如果不需要将返回byte长度-->
<convertSpeed value="true"/>
<!--执行队列类型见com.arialyy.aria.core.QueueMod默认类型为now-->
<!--执行队列类型见com.arialyy.aria.core.QueueMod默认类型为wait-->
<queueMod value="wait"/>
</download>
@ -51,6 +51,9 @@
<!--设置url连接超时时间单位为毫秒默认5000毫秒-->
<connectTimeOut value="5000"/>
<!--执行队列类型见com.arialyy.aria.core.QueueMod默认类型为wait-->
<queueMod value="wait"/>
</upload>
</aria>

View File

@ -59,7 +59,7 @@ public class FtpDownloadActivity extends BaseActivity<ActivityFtpDownloadBinding
switch (view.getId()) {
case R.id.start:
Aria.download(this)
.loadFtp(URL)
.loadFtp(URL, true)
.login("lao", "123456")
.setDownloadPath("/mnt/sdcard/")
.start();

View File

@ -187,7 +187,7 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> {
switch (view.getId()) {
case R.id.start:
Aria.download(SingleTaskActivity.this)
.load(DOWNLOAD_URL)
.load(DOWNLOAD_URL, true)
.addHeader("groupName", "value")
.setDownloadPath(Environment.getExternalStorageDirectory().getPath() + "/gggg.apk")
.start();

View File

@ -35,7 +35,7 @@ import com.arialyy.simple.widget.SubStateLinearLayout;
* Created by Aria.Lao on 2017/7/6.
*/
public class FTPDirDownloadActivity extends BaseActivity<ActivityDownloadGroupBinding> {
private static final String dir = "ftp://172.18.104.129:21/haha/";
private static final String dir = "ftp://172.18.104.66:21/haha/";
@Bind(R.id.child_list) SubStateLinearLayout mChildList;