DownloadManager
Introduce
- ??OkHttp??????????????????????Demo?????RecyclerView??Application??????????
- ??????????????????????
Demo
Screenshot
Use
Gradle
compile 'com.yuan.library.dmanager:downloadmanager-okhttp-release:1.1.8'
Maven
<dependency>
<groupId>com.yuan.library.dmanager</groupId>
<artifactId>downloadmanager-okhttp-release</artifactId>
<version>1.1.8</version>
<type>pom</type> </dependency>
Code
// ?Application??? DownloadManager.getInstance().init(this, 3);
// ????? String taskId = String.valueOf(mListData.get(holder.getAdapterPosition()).getUrl().hashCode());
DownloadTask itemTask = mDownloadManager.getTask(taskId);
DownloadManager.getInstance().add(itemTask);
//????????????????adapter????????????demo?
Update
v1.1.8
- ?????????????????crash?
v1.1.7
- ???????????????????crash?bug?
- ??ConnectException???
- ????demo?
v1.1.6
- ?????????GreenDao???
v1.1.5
- ???????????????
v1.1.4
- ???????14?Android4.0?
v1.1.3
- ?????????????????????????BUG??demo????????????????
v1.1.2:
- ????????????????????????????
- ??Demo????????????????????????UI??????????????????????service???
- ?????????
v1.1.1?
- ??????????
- ?????OkHttpClient???DownloadManager.getInstance().init(this, 3?HttpClient)???
- ?????????????????????CPU??????????????????15??
v1.1.0?
- ??????????????????????????
- ?????bug?
Remark
??demo????????????????????????????????demo?????????MainActivity?getMockData???????????
Contacts
mail: [email protected]
qq:11026979