GithubHelp home page GithubHelp logo

singlethreaddownloader's Introduction

SingleThreadDownloader

TODO:
1.数据库处理的接口与实现分离,方便以后换不同的实现方案
2.下载任务的优先级调整,参考操作系统是如何实现优先级调度的
3.把下载工作移到Service中处理
4.参考Google提供的DownloadManager,把任务用ContentProvider封装起来。阅读DownloadManager相关源码。
5.封装与一个Android library,供他人使用
6.参考google play等应用的下载功能,尽量做到功能上类似
7.用HashMap保存数据库任务的缓存
8.开发者可以设置下载文件的类型(apk,jpg,html,mp3等)及本地路径
9.阅读《java并发编程实战》,及时优化相关代码模块
10.参考github上别人写的下载库,学习其中的优点,并设法在本项目中运用起来
11.下载过程中用户清理了SD卡缓存如何解决?检查文件是否存在?重新下载一个完整的文件?
12.如何让下载Service不被杀死?多进程?

singlethreaddownloader's People

Contributors

passionli avatar

Watchers

 avatar  avatar

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.