I am working with Android 3.0 and 3.1.
I use the class AndroidHttpClient in my application and for the execute I use execute(HttpUriRequest).
I have a progress bar in the UI that I want to be updated while sending data.
Is there any way to get notifications from the AndroidHttpClient about the progress of the data sending (I guess it doesn’t send the whole buffer in one shot)?
Thanks
To track the progress of data as it is sent to the server you have to wrap the underlying HTTP entity that is being sent. If you subclass HttpEntityWrapper and override
writeTo()you can wrapper the OutputStream with a FilterOutputStream that is the stream being written to the server.