Esempio n. 1
0
 @Override
 protected void onProgressUpdate(Integer... Score) {
   // TODO Auto-generated method stub
   super.onProgressUpdate(Score);
   gameActivity = GameActivity.getTheGameActivity();
   gameActivity.setTheScore(Score[0]);
 }
Esempio n. 2
0
 @Override
 protected void onProgressUpdate(Integer... values) {
   super.onProgressUpdate(values[0]);
   setAngle(values[0]);
   mIsProgressSetViaApi = true;
   invalidate();
 }
Esempio n. 3
0
    @Override
    protected void onProgressUpdate(Boolean... values) {
      // TODO Auto-generated method stub
      super.onProgressUpdate(values[0]);

      if (values[0]) {
        if (!eventHandler.isHeaderVisible && !eventHandler.isFooterVisible) {
          if (anim != 1) {
            eventHandler.showFullScreenBookmark();
            anim = 1;
            Log.d("anim", anim + "");
          }
        } else {
          eventHandler.hideFullscreenBookmark();
          eventHandler.headerRibbonEnable();
          anim = 0;
        }
      } else {
        if (!eventHandler.isHeaderVisible && !eventHandler.isFooterVisible) {

          if (anim != 0) {
            eventHandler.hideFullscreenBookmark();
            anim = 0;
            Log.d("anim", anim + "");
          }
        } else {
          eventHandler.headerRibbonDisable();
          anim = 1;
        }
      }
    }
Esempio n. 4
0
 @Override
 protected void onProgressUpdate(String... values) {
   super.onProgressUpdate(values);
   if (values.length > 0) {
     Toast.makeText(getApplicationContext(), values[0], Toast.LENGTH_LONG).show();
   }
 }
  @Override
  protected void onProgressUpdate(String... values) {
    super.onProgressUpdate(values);

    // EditText passwordField = (EditText)
    // parent.findViewById(R.id.LoginScreen_EditTextPassword);

    String[] message_parts = values[0].split(":");

    // FORMAT: [TYPE]:[EMAIL]:[TOKEN]:[DATA]:[EOP]
    // 0 1 2 3 4
    Log.v("REC_M", "RECEIVED:" + values[0]);

    if (message_parts.length == 5) {
      String TYPE = message_parts[0];
      String Status = message_parts[3];

      Log.v("TYPE", "TYPE:" + TYPE);

      if (TYPE.equals("STATUS")) {
        AlertDialog.Builder alertDialog = new AlertDialog.Builder(parent);
        alertDialog.setTitle("             User Alert !");
        alertDialog.setMessage(Status);
        alertDialog.setPositiveButton(
            "OK",
            new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int id) {}
            });

        alertDialog.show();
        (parent.findViewById(R.id.ForgotPassword_ButtonResetPassword)).setEnabled(true);
      }
    }
  }
Esempio n. 6
0
    @Override
    protected void onProgressUpdate(Integer... values) {
        pb.setProgress(values[0]);
        percent.setText(values[0] + "%");

        super.onProgressUpdate(values);
    }
 @Override
 protected void onProgressUpdate(Void... values) {
   if (null != mDoingProgressUpdate) {
     mDoingProgressUpdate.doingProgressUpdate(values);
   }
   super.onProgressUpdate(values);
 }
 @Override
 protected void onProgressUpdate(Void... values) {
   super.onProgressUpdate(values);
   if (league != null) {
     populateView();
   }
 }
Esempio n. 9
0
 @Override
 protected void onProgressUpdate(Integer... values) {
   // Update progress
   mBuilder.setProgress(100, values[0], false);
   mNotifyManager.notify(notificationID, mBuilder.build());
   super.onProgressUpdate(values);
 }
Esempio n. 10
0
  @Override
  protected void onProgressUpdate(Music... position) {
    super.onProgressUpdate(position);

    if (!TextUtils.isEmpty(position[0].getImgUrl())) updateCallBack.onUpdate(position[0]);
    else updateFailCallBack.onUpdateFail(position[0]);
  }
Esempio n. 11
0
 @Override
 protected void onProgressUpdate(Integer... values) {
   int count = values[0];
   progressView.setProgress(count); // 设置下载进度
   textView.setText("进度:" + count + "%");
   super.onProgressUpdate(values);
 }
 @Override
 protected void onProgressUpdate(Integer... values) {
   super.onProgressUpdate(values);
   // Log.d("TAG", "values[0]:" + values[0]);
   // music_loadcv.setProgress(values[0]);
   // apla.notifyDataSetChanged();
 }
 @Override
 protected void onProgressUpdate(Integer... progress) {
   super.onProgressUpdate(progress);
   // if we get here, length is known, now set indeterminate to false
   mProgressDialog.setIndeterminate(false);
   mProgressDialog.setMax(100);
   mProgressDialog.setProgress(progress[0]);
 }
    protected void onProgressUpdate(Integer... values) {

      super.onProgressUpdate(values[0]);

      progressbar.setProgress(values[0]);
      Integer s = values[0];
      result.setText(s);
    }
Esempio n. 15
0
 @Override
 protected void onProgressUpdate(Integer... values) {
   super.onProgressUpdate(values);
   progressBar.setProgress(
       values[
           0]); // Esto se corrió en el subproceso de interfaz de usuario, así que es buena idea
                // actualizar nuestra barra de progreso (una vista UI) aquí.
 }
  @Override
  protected void onProgressUpdate(String... values) {
    super.onProgressUpdate(values);

    if (textProcessoPesquisa != null) {
      textProcessoPesquisa.setText(values[0]);
    }
  }
Esempio n. 17
0
  @Override
  protected void onProgressUpdate(Integer... values) {
    super.onProgressUpdate(values);

    if (!interrupted && progressListener != null) {
      progressListener.onProgress(values[0]);
    }
  }
 /** 异步任务执行过程中调用方法. 必须在doInBackground方法中调用publishProgress()方法发送消息 */
 @Override
 protected void onProgressUpdate(Integer... values) {
   super.onProgressUpdate(values);
   int progress = values[0];
   Logs.v("onProgressUpdate >>>>>> " + progress);
   mSeekBar.setProgress(progress);
   mShowMessageTxt.setText("" + progress);
 }
Esempio n. 19
0
 @Override
 protected void onProgressUpdate(Integer... values) {
   // TODO Auto-generated method stub
   super.onProgressUpdate(values);
   if (isCancelled()) {
     return;
   }
   progressBar.setProgress(values[0]);
 }
 @Override
 protected void onProgressUpdate(String... values) {
   super.onProgressUpdate(values);
   if (titleTextBox != null) titleTextBox.setText(updating + " " + values[0] + "...");
   if (Build.VERSION.SDK_INT >= 11) {
     ActionBar ab = getActionBar();
     if (ab != null) ab.setSubtitle(updating + " " + values[0] + "...");
   }
 }
Esempio n. 21
0
 @Override
 protected void onProgressUpdate(Integer... values) {
   super.onProgressUpdate(values);
   Log.d("gagagagagaga", "" + values[0]);
   if (progressDialog != null) {
     progressDialog.setProgress(values[0]);
     progressDialog.setMax(files.length);
   }
 }
 @Override
 protected void onProgressUpdate(Void... values) {
   super.onProgressUpdate(values);
   if (isCancelled()) return;
   final View filters = findViewById(R.id.filtersPanel);
   final View loading = findViewById(R.id.loading);
   loading.setVisibility(View.GONE);
   filters.setVisibility(View.VISIBLE);
 }
 @Override
 protected void onProgressUpdate(Integer... values) {
   super.onProgressUpdate(values);
   // 如果用户取消直接return
   if (isCancelled()) {
     return;
   }
   // 获取进度更新值
   progressBar.setProgress(values[0]); // 获取参数
 }
Esempio n. 24
0
    @Override
    protected void onProgressUpdate(Integer... values) {
      Log.d(TAG, "onProgressUpdate()");

      String value = String.valueOf(values[0]);

      if (mMainTextView != null) mMainTextView.setText(value);

      super.onProgressUpdate(values);
    }
    @Override
    protected void onProgressUpdate(Integer... amplitude) {
      super.onProgressUpdate(amplitude);

      moveMeterArrow(amplitude[0] * 2); // 1 decibel == 2 degree on meter

      if (!isDbLevelReached) {
        isDbLevelReached = (amplitude[0] >= dbTopValue);
      }
    }
Esempio n. 26
0
  @Override
  protected void onProgressUpdate(String... values) {
    super.onProgressUpdate(values);

    if (mSavedListener != null && values != null) {
      if (values.length == 1) {
        mSavedListener.onProgressStep(values[0]);
      }
    }
  }
Esempio n. 27
0
    @Override
    protected void onProgressUpdate(String... values) {

      int i = Integer.valueOf(values[0]);
      int j = Integer.valueOf(values[1]);
      // Log.i("size", String.valueOf(values.length));
      viewpaper.startAnimation(anim.get(j));
      viewpaper.setCurrentItem(i);
      super.onProgressUpdate(values);
    }
  /**
   * Update the dialog box with the latest incremental progress.
   *
   * @param message [0] Text to be displayed
   * @param message [1] Numeric value for the progress
   */
  @Override
  protected void onProgressUpdate(String... message) {
    super.onProgressUpdate(message);
    int percentComplete = 0;

    percentComplete = Integer.parseInt(message[1]);
    dialog.setMessage(message[0]);
    dialog.setProgress(percentComplete);
    dialog.show();
  }
  @Override
  protected void onProgressUpdate(Integer... values) {
    //        for (Integer value : values) {
    //            mNotificationCompat
    //                    .setTicker(value + "/" + urls.size())
    //                    .setProgress(urls.size(), value, false);
    //            mNotificationManager.notify(DOWNLOAD_NOTIFY_ID, mNotificationCompat.build());
    //        }

    super.onProgressUpdate(values);
  }
Esempio n. 30
0
    @Override
    protected void onProgressUpdate(Integer... values) {
      Log.d(BatchAsyncTask.class.toString(), "onProgressUpdate...");
      super.onProgressUpdate(values);

      BatchMenuActivity activity = (BatchMenuActivity) AppData.getCurrentActivity();
      if (activity.pDialog.getMax() == DEFAULT_MAX_PROGRESS_DIALOG) {
        activity.pDialog.setMax(totalDays);
      }
      activity.pDialog.setProgress(values[0]);
    }