title: progressbars when uploading multiple files to the server in android
body: <p>I upload files (videos and photos) from android to php server
  and I use this code : </p>
  
  <pre><code>@SuppressWarnings("deprecation")
  protected String doInBackground(String... args) {
  
      // Building Parameters
      List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
  
      Utils.d(Config.REST_SERVER + url_connect);
  
      HttpClient httpclient = new DefaultHttpClient();
      HttpPost httppost = new HttpPost(Config.REST_SERVER+url_connect);
  
      try {
  
  
  
  
        @SuppressWarnings("deprecation")
        MultipartEntity entity = new MultipartEntity();
  
        entity.addPart("userId", new StringBody(this.userId));
        entity.addPart("orderId", new StringBody(this.orderId));
  
  
        Utils.d("size totale avant  : "+this.files.size());
  
        int i = 0;
        for(File f:this.files){
            entity.addPart("nameFile", new StringBody(f.getName()));
            i++;
            entity.addPart("files[]", (ContentBody) new FileBody(f));
        }
  
  
        httppost.setEntity(entity);
        HttpResponse response = httpclient.execute(httppost);
  
  
  
        HttpEntity httpEntity = response.getEntity();
        is = httpEntity.getContent();
  
        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(
                    is, "iso-8859-1"), 8);
            StringBuilder sb = new StringBuilder();
            String line = null;
            while ((line = reader.readLine()) != null) {
                sb.append(line + "\n");
            }
            is.close();
            json = sb.toString();
        } catch (Exception e) {
            Log.e("Buffer Error", "Error converting result " + e.toString());
        }
  
        // try parse the string to a JSON object
        try {
            Log.d("Create Response", json);
            jObj = new JSONObject(json);
            Log.d("Create Response", jObj.toString());
        } catch (JSONException e) {
            Log.e("JSON Parser", "Error parsing data " + e.toString());
        }
  
  
      } catch (ClientProtocolException e) {
      } catch (IOException e) {
      }
  
  
      return null;
  }
  </code></pre>
  
  <p>and I want to make as many progressbar as files and those progressbar will change states according to percent of byttes sent to the server </p>
  
  <p>is there any way to do that</p>
  
  <p>thank you in advance</p>