Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当退出app后,之前已经安装一半的应用变为0 #7

Open
yangzhanlong opened this issue Apr 8, 2018 · 1 comment
Open

Comments

@yangzhanlong
Copy link

解决方法,应该添加数据库记录下载大小,状态等

@guzhigang001
Copy link
Owner

嗯嗯!我记得工具类中有状态的值,并且状态的值都是通过GreenDAO 存入数据库的,每个任务对应一个对象存入数据库中,下次下载的时候可以先从数据库中读取,然后继续下载。
这部分可能代码中写的不是很好,但是里面的框架都已经搭建好了,你可以自己优化调用现有的API就好啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants