I upload photo to the server via the default HttpClient in Android SDK. I want to show progress in the user interface, is there a way to find out how much has been uploaded?
I haven't used httpclient but I have done something like you want using AsyncTask
.
private class DownloadImageTask extends AsyncTask{
protected Bitmap doInBackground(String... urls) {
while (myProgress
See in background process I'm incrementing the progressbar and decoding image and in post execution I'm setting the image.