文件名称:test_asynctask
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Android]
- 上传时间:
- 2013-07-31
- 文件大小:
- 62kb
- 下载次数:
- 0次
- 提 供 者:
- 俞*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Android断点续传及网格文件下载的Java实例源代码,支持在暂停下载后继续下载,现在很多下载软件普遍都使用的功能,在Android手机软件中应用断点续传技术也是很有必要的。通过这个Android源码可学习一下如何基于Java代码实现断点续传的应用,比如如何设置当前线程下载的起点、终点,设置断点续传的开始位置,设置User-Agent ,httpURLConnection.setRequestProperty("User-Agent","NetFox") 设置断点续传的开始位置,httpURLConnection.setRequestProperty("RANGE","bytes=4096") 如何使用java中的RandomAccessFile 对文件进行随机读写操作,如何自动去调用onProgressUpdate方法,传递下载进度,当一个下载任务成功下载完成的时候回来调用onPostExecute方法,这里的result参数就是doInBackground方法的返回值。-Android HTTP and grid files downloadable Java source code examples to support continued after pausing a download download now download software generally use a lot of features, the Android phone software applications HTTP technology is also necessary . Through this Android source code can learn how to code based on Java HTTP applications, such as how to set the current thread download start, end, set the start position HTTP, set the User-Agent, httpURLConnection.setRequestProperty (" User-Agent " ," NetFox " ) Set HTTP starting position, httpURLConnection.setRequestProperty (" RANGE " ," bytes = 4096 " ) RandomAccessFile how to use java in random read and write operations on the file, how to automatically go call onProgressUpdate method, passing the download progress, when a download task completed successfully downloaded back when calling onPostExecute method, where the result parameter is the doInBackground method' s return value.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
(没有文件,原文件不完全或已损坏或有密码)