Giter VIP home page Giter VIP logo

Comments (38)

getActivity avatar getActivity commented on June 9, 2024

EasyHttp-12.8.aar.zip

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 小伙子,我加上了,你用上面的包试试看。

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 感谢 请问下这个功能是单独分离出来的么 以后会合入正式的框架中么

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

感觉不是很会用,请问有什么说明文档么?

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 小伙子,框架中默认是开启断点下载功能,你不需要额外设置其他 API,但是有一个前提条件,就是要你们服务器支持断点续传功能才可以。

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@getActivity 感谢 请问下这个功能是单独分离出来的么 以后会合入正式的框架中么

是的,现在只是测试阶段,想让你帮我测试一下(理论上是没有问题的,因为这块我做了很多自测和处理),如果没有问题的话,过一段时间会发布到远程仓库上。

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 我也是直接使用框架的,刚才是我想多了,我们服务器是支持断点续传的功能的,我接下来会一直在测试。

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

请问下,我在下载的途中,手动断开了wifi连接,然后打开wifi,重新连接上以后,继续点击下载,为什么进度还是从0开始呢?难道是服务器不支持断点么,我们服务器是支持的。

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

EasyHttp.apk.zip

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 小伙子,你试一下上面 demo apk 包有没有这个问题?

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 另外你下载使用的文件类型,用的是 File 类还是 FileContentResolver 类?

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

com.hjq.http.EasyHttp.download(this)
.method(HttpMethod.GET)
.file(Config.BIN + File.separator + "all.bin")
.url(d!!.fileUrl)
.api(GjApi::class.java)
.listener(object : OnDownloadListener {
override fun onDownloadStart(file: File) {
}
}
@getActivity 我是直接用file下载的 我想问下 是不是我操作得不对 我用apk也是下载一半以后 手动断开手机wifi 再重连wifi 再点击下载文件 还是一样从头开始下载

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg demo apk 包是否也有这个问题?

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 有的 我测试断开wifi 再连接wifi 点击下载文件 进度条也是从头开始呢

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

EasyHttp-12.8.aar.zip

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

小伙子,之前是我把框架下载断点续传的功能默认设置成关闭了,你换成这个包试一下就好了。

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 太完美了 测试了10次 都可以断点续传

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

轮子,今天测一直有问题,下载过程中wifi断开,然后等待wifi连接上以后再开启下载,一直出现错误,我项目中有两处地方用到下载,一个地方下载文件大小是106k,另一个地方下载是30M。如果30M的下载触发断点,一直就会下载下来是106K,感觉和前面下载有冲突了,而且下载进度显示了百分之169%

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

还发现如果第一个下载成功了。第二个点击下载直接触发下载成功,逻辑是第一个的下载文件

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

1701329732976
显示169 不懂啥意思

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 小伙子,你下载的这两个文件的文件路径是不是都是同一个?

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 是的 下载路径都是一样的了 是否需要对应不一样的路径能解决此问题?

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 是的,小伙子

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 感谢 请问什么时候能发布正式版本?

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

1701410573703
为什么都分别把下载路径都放置在不一样的文件夹里面了 还是出现一样的问题呢 请问该怎么改?

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

ABin里面的文件本来下载结束以后是30M的,然后再点击一次下载,再进入ABin文件夹里面看到大小变成Alot文件的大小了,感觉路径不一样还是有冲突呢

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 小伙子,不是吧?放两个不一样的文件夹中,肯定是没有这个问题的,你看一下,是不是之前下载的缓存所导致的?

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 不行的 我把本地路径下的文件全部删除 重启手机 还是一样的 ABin目录下的文件 在触发断点的情况下 每次点击再次下载都不能再次下载了 不懂为什么

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 或者我怎么样关闭断点下载这个功能,我只开启其中一个下载有断点下载就可以了

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@getActivity 或者我怎么样关闭断点下载这个功能,我只开启其中一个下载有断点下载就可以了

image

小伙子,用这个 API 就可以关闭断点续传。

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@getActivity 不行的 我把本地路径下的文件全部删除 重启手机 还是一样的 ABin目录下的文件 在触发断点的情况下 每次点击再次下载都不能再次下载了 不懂为什么

不是吧,只要路径不一样,理论上不会有这种情况出现的,我测试一下看看

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

EasyHttp.zip

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

小伙子,我测试过了是没有问题的,你可以下载上面的 demo 工程进行测试。

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

轮子,用流量是可以的,怀疑是公司wifi做了手脚,导致不成功。我再测试一下,还有个问题,我怎么中断当前下载呢?比如说我当前界面在下载中,我退出界面了,我发现还在下载,以前旧版本我是调用.cancel方法,新版本已经没有了,我调用cancelAll了,测试的时候有发现有几率下载不能停止,还在继续下载

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 小伙子,用这个 API 就可以取消下载

from easyhttp.

getActivity avatar getActivity commented on June 9, 2024

@ylmyg 另外后面我可能会把框架中的断点下载的开关默认设置成关闭状态,你可能要多留意下,当然你可以先将需要设置断点下载的地方设置一下 resumableTransfer(true)

from easyhttp.

ylmyg avatar ylmyg commented on June 9, 2024

@getActivity 感谢

from easyhttp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.