Code Monkey home page Code Monkey logo

Comments (7)

junixapp avatar junixapp commented on June 14, 2024

@willBars 重新推了sample,你再试试,不过这个真正跑起来,还需要自己跑个Server,主要看Sample代码吧

from okhttpdownloader.

willBars avatar willBars commented on June 14, 2024

好的!谢谢!
另外,你的okhttp-downloader这个module怎么不直接做成一个jar呢!然后直接引用okhttp-downloader.jar 和ormlite-android-4.48.jar以及 ormlite-core-4.48.jar
还有你说的自己跑个Server,不是很明白!能否加下联系,指导下

from okhttpdownloader.

junixapp avatar junixapp commented on June 14, 2024

@willBars

  1. 已经做成的jitpack库了,直接引用依赖不是更好吗,README中写的有。jar的方式早就落伍了。
  2. 下载的app数据来自于服务器啊,没有Server数据从哪下载?

from okhttpdownloader.

willBars avatar willBars commented on June 14, 2024

嗯嗯啊!我们做sdk 只能使用jar的方式

from okhttpdownloader.

junixapp avatar junixapp commented on June 14, 2024

@willBars
你们写代码不用构建工具吗,maven或者更好的gradle,用的话就可以添加依赖啊。不用的话我已经无力吐槽了。

from okhttpdownloader.

willBars avatar willBars commented on June 14, 2024

老铁:
//下载的接口
/String Download = "download?name=%s";
//断点下载的地址
String BreakDownload = "download?name=%s&range=%d";
我刚才试了下,我写成一样的,然后点击下载后,再将进程杀死,再进来下载界面,这个时候好像是不能断点续传的,要重新点击下载,才可以

from okhttpdownloader.

junixapp avatar junixapp commented on June 14, 2024

所有的断点续传都需要服务器有对应的支持,估计你们的Server没有处理range字段,这个字段是断点续传的关键字段

from okhttpdownloader.

Related Issues (1)

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.