Comments (1)
Actually, for more simpleness, okdownload core library doesn't run on the service, it's just an okdownload
singleton (what is like OkHttpClient
or Picasso
provided), so there isn't startForeground
now.
Then, if you want okdownload running in the service now because you want to get the benefit from foreground service, you just feel free to create a service and download resource with okdownload on it.
On More Thing
On the further version, we will implement a special DownloadDispatcher
to implement okdownload running on the independent process, then you can enable it like okdownload:sqlite
or okdownload:okhttp
which has been said on here, and on that moment, I think we will provide such startForeground
method again.
from okdownload.
Related Issues (20)
- is OkDownload support config custom Executor?
- 断点下载的判断为什么没有使用If-Range呢 HOT 1
- 下载超过2G多大文件时,杀进程后,再次下载无法断点续传。 HOT 2
- 报错啦,求大佬支援 HOT 2
- The current offset on block-info isn't update correct, 104466100 != 106391228 on 3
- The current offset on block-info isn't update correct, 104466100 != 106391228 on 3 HOT 14
- 当文件存在时,如何覆盖当前文件下载 HOT 2
- How do I download and run this ? HOT 1
- TaskEnd while EachBlockProgress not always called
- 如何在杀了应用后,可以断点续传下载
- java.lang.IllegalStateException: The current store is com.liulishuo.okdownload.core.breakpoint.BreakpointStoreOnSQLite@11ffbcb not RemitStoreOnSQLite!
- Build Failed AGP8
- Resume failed because of RESPONSE_PRECONDITION_FAILED
- Android13 taskEnd: 1 ERROR java.io.IOException: Create parent folder failed!
- How to Download with Referer on Header HOT 1
- m.My/ HOT 1
- targetSDK升级到30后无法正常使用 HOT 10
- 不需要断点续传的单文件下载场景,可使用以下替代方案试一试
- https://m.facebook.com,au
- 当前url请求失败或者下载异常,如何通过备用url或者ip直连的方式重试, HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okdownload.