文件名称:FileUpload
介绍说明--下载内容均来自于网络,请自行研究使用
基于socket通讯的文件续传源码,主要面向Android客户端,FileService.java获取每条线程已经下载的文件长度,当文件上传完成后,删除对应的上传记录;StreamTool.java主要用来读取读取文件流,返回上传文件字节数组,用Android上传文件不懂的就可参照这个示例一步步实现,有些代码可以共用-Socket-based communication HTTP source files, mainly for Android client, FileService.java each thread has access to download the file length, when the file upload is complete, delete the corresponding records uploaded StreamTool.java primarily used to read to read file stream, byte array returned uploading files, upload files using Android can not understand the reference to the example of a step by step to achieve some of the code can be shared
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FileUpload\.classpath
..........\.project
..........\AndroidManifest.xml
..........\bin\classes.dex
..........\...\.n\itcast\service\DBOpenHelper.class
..........\...\..\......\.......\FileService.class
..........\...\..\......\upload\R$attr.class
..........\...\..\......\......\R$drawable.class
..........\...\..\......\......\R$id.class
..........\...\..\......\......\R$layout.class
..........\...\..\......\......\R$string.class
..........\...\..\......\......\R.class
..........\...\..\......\......\UploadActivity$1.class
..........\...\..\......\......\UploadActivity$2.class
..........\...\..\......\......\UploadActivity$3.class
..........\...\..\......\......\UploadActivity.class
..........\...\..\......\.tils\StreamTool.class
..........\...\FileUpload.apk
..........\...\resources.ap_
..........\default.properties
..........\gen\cn\itcast\upload\R.java
..........\res\drawable-hdpi\icon.png
..........\...\.........ldpi\icon.png
..........\...\.........mdpi\icon.png
..........\...\layout\main.xml
..........\...\values\strings.xml
..........\src\cn\itcast\service\DBOpenHelper.java
..........\...\..\......\.......\FileService.java
..........\...\..\......\upload\UploadActivity.java
..........\...\..\......\.tils\StreamTool.java
..........\bin\cn\itcast\service
..........\...\..\......\upload
..........\...\..\......\utils
..........\gen\cn\itcast\upload
..........\src\cn\itcast\service
..........\...\..\......\upload
..........\...\..\......\utils
..........\bin\cn\itcast
..........\gen\cn\itcast
..........\src\cn\itcast
..........\bin\cn
..........\gen\cn
..........\res\drawable-hdpi
..........\...\drawable-ldpi
..........\...\drawable-mdpi
..........\...\layout
..........\...\values
..........\src\cn
..........\assets
..........\bin
..........\gen
..........\res
..........\src
FileUpload