title: AsyncTask and Progress Bar
body: <p>I have application that sends (multiple text files) to server and progress bar is updated on each file send &amp; get response. It is dismissed once all files has been sent. </p>
  
  <p>I have successfully implement this by calling send function inside a loop and progress bar gets updated.   Now I want to AsyncTask to execute the http request for each file and meanwhile progress bar gets updated as well. </p>
  
  <p>How do I define AsyncTask to send specific file and get the response. On every file it sends, progress bar is also gets updated?</p>
  
  <p>Any help would be really appreciated.</p>
  
  <p>Thanks</p>
  
  <p>-Sam</p>