郑文亮 发表于 2012-12-10 14:29:14

Android带进度条文件上传

<div id="cnblogs_post_body">Being able to display a progress bar during a time consuming upload to a web server is important when dealing with users and appeasing their impatience. Here is one approach of achieving this.http://hi.csdn.net/attachment/201112/15/0_1323955429z1ME.gif
In this example we are going to use 2 classes – the first one is going to implement Android’s really handy threading function: Async Task and the other is going to extend MutlipartEntity – the basic object used for a multipart POST. Let’s take a look at extending a MultipartEntity object:

CustomMultiPartEntity.java

<div class="dp-highlighter bg_java"><div class="bar"><div class="tools"> view plaincopyprint?
页: [1]
查看完整版本: Android带进度条文件上传