コード例 #1
0
    protected void onProgressUpdate(Integer... progress) {
      super.onProgressUpdate(progress);
      int total_files = progress[1];
      int current_file = progress[0];
      progress_download.incrementProgressBy(1);
      progress_download.setMax(total_files);

      if (current_file < total_files) {
        progress_text.setText(
            "Downloading "
                + Integer.toString(current_file)
                + " of "
                + Integer.toString(total_files)
                + ".");
      } else {
        progress_text.setText("Completed.");
        resume_pause.setVisibility(View.GONE);
        // writeProgress(
        // viewimages.setEnabled(true);
      }
      //	mProgressDialog.setProgress(progress[0]);
      progress_download.setProgress(current_file);
    }
コード例 #2
0
 @Override
 protected void onProgressUpdate(Integer... progress) {
   super.onProgressUpdate(progress);
 }
コード例 #3
0
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
 }
コード例 #4
0
    protected void onPreExecute() {
      super.onPreExecute();
      //	mProgressDialog.show();

    }