duzechao / downloadmanager Goto Github PK
View Code? Open in Web Editor NEW一个下载框架/a download library
一个下载框架/a download library
当前添加监听的方法是 DownloadManager.addDownloadListener(task, DownloadTaskListener)
在另外一个界面进行监听 task对象是没有的!
你现在的方案每次更新进度都要dao.update(),下载线程就会阻塞住,可读写数据库是很耗时的,感觉会影响下载速度。觉得再全局单独开一个线程来处理更新进度的数据库读写会好一点
下载的时候出现了下载进度是 771%的问题
下载失败后 状态又变成了 下载完成
怎么解决
DownloadTask 中,87行采取buffOffset 降低数据库操作次数的想法,我觉得很好。不过这里好像没代码并没加上,还是因为别的什么原因?
downloadManager.loadAllDownloadTaskFromDB(),我用这个方法获取的task,但是给他设置监听不起作用,不知道为什么
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.