title: DIALOG DOWNLOAD PROGRESS always shows 100% on second download attempt
body: <p>I need help here, my DIALOG_DOWNLOAD_PROGRESS always shows 100% on onPreExecute() (Second Download Attempt). How to make it start from 0% from the second attempt download. Need help here. Thanks</p>
  
  <pre><code>@Override
  protected Dialog onCreateDialog(int id) {
      switch (id) {
      case DIALOG_DOWNLOAD_PROGRESS:
          mProgressDialog = new ProgressDialog(this);
          mProgressDialog.setMessage("Downloading file..");
          mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
          mProgressDialog.setCancelable(true);
          mProgressDialog.show();
          return mProgressDialog;
      default:
  
          return null;
      }
  }
  </code></pre>
  
  <p>class DownloadFileAsync extends AsyncTask {</p>
  
  <pre><code>@Override
  protected void onPreExecute() {
      super.onPreExecute();
      showDialog(DIALOG_DOWNLOAD_PROGRESS);
  }
  </code></pre>
  
  <p>....</p>
  
  <pre><code>}
  protected void onProgressUpdate(String... progress) {
       Log.d("ANDRO_ASYNC",progress[0]);
       mProgressDialog.setProgress(Integer.parseInt(progress[0]));
  
  }
  
  @Override
  protected void onPostExecute(String unused) {
      dismissDialog(DIALOG_DOWNLOAD_PROGRESS);
  }
  </code></pre>