On Aug 14, 2012, at 1:43 PM, Live Happy <[email protected]> wrote:

> i implement the download part and its easy to made by divide the length of 
> file by the downloaded stream and put the result in progress bar but in 
> uploading i  i didn't succeed to do the same way so wish a help with that

What you could try is to upload file in chunks. Instead of sending whole file 
to OutputStream send only parts of it, calling flush() in the middle. And if 
you're lucky calling flush() will upload that chunk to upstream giving you a 
possibility to update progress bar.

--
H

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to