@Override
 public void onPause() {
   super.onPause();
   SharedPreferences sets = getSharedPreferences(PREFS_NAME, 0);
   SharedPreferences.Editor editor = sets.edit();
   editor.putInt("Favorit", favorit);
   editor.putLong("Update", timeupdate);
   editor.commit();
 }
  @Override
  public void onPause() {
    super.onPause();

    if (newKeyReceiver != null) {
      Log.w("ConversationListActivity", "Unregistering receiver...");
      unregisterReceiver(newKeyReceiver);
      newKeyReceiver = null;
    }
  }
 /** Stop audio player and save opened tab */
 @Override
 protected void onPause() {
   super.onPause();
   /* Check for an ongoing scan that needs to be resumed during onResume */
   mScanNeeded = MediaLibrary.getInstance(this).isWorking();
   /* Stop scanning for files */
   MediaLibrary.getInstance(this).stop();
   /* Save the tab status in pref */
   SharedPreferences.Editor editor = getSharedPreferences("MainActivity", MODE_PRIVATE).edit();
   editor.putString("fragment", mCurrentFragment);
   editor.commit();
 }
  @Override
  protected void onPause() {
    super.onPause();

    if (isAnimatingRefreshButton) {
      isAnimatingRefreshButton = false;
    }
    if (mShouldFinish) {
      overridePendingTransition(0, 0);
      finish();
    } else {
      WordPress.shouldRestoreSelectedActivity = true;
    }
  }
Example #5
0
  @Override
  protected void onPause() {
    super.onPause();

    if (settings.getCallMode().equals(Settings.ARRAY_CALL_MODE_VOICE)) setProximityEnabled(false);

    if (mService != null) {
      mService.setActivityVisible(false);

      // Turn off push to talk when rotating so it doesn't get stuck on, except if it's in toggled
      // state.
      // if(settings.isPushToTalk() && !mTalkToggleBox.isChecked()) {
      //	mService.setRecording(false);
      // }
    }
  }
  @Override
  protected void onPause() {
    this.activityHelper.onPause(this);

    super.onPause();
  }
 @Override
 protected void onPause() {
   super.onPause();
   mBus.unregister(this);
 }
Example #8
0
 @Override
 public void onPause() {
   super.onPause();
   MobclickAgent.onPageEnd("MainActivity");
   MobclickAgent.onPause(this);
 }
 @Override
 protected void onPause() {
   super.onPause();
   if (adRefreshHandler != null) adRefreshHandler.onPause();
 }
Example #10
0
 @Override
 protected void onPause() {
   super.onPause();
   EasyTracker.getInstance(this).activityStop(this);
 }
 @Override
 protected void onPause() {
   // Log.i("SWall",TAG+":onPause");
   super.onPause();
   MobclickAgent.onPause(this);
 }
Example #12
0
 @Override
 protected void onPause() {
   super.onPause();
   MobclickAgent.onPause(this);
 }
Example #13
0
 @Override
 protected void onPause() {
   super.onPause();
   if (aboutDialog != null) aboutDialog.dismiss();
   if (eraseDialog != null) eraseDialog.dismiss();
 }
  @Override
  protected void onPause() {
    super.onPause();

    if (mBlogDeleted || mIsViewingAdmin) return;

    blog.setUsername(mUsernameET.getText().toString());
    blog.setPassword(mPasswordET.getText().toString());
    blog.setHttpuser(mHttpUsernameET.getText().toString());
    blog.setHttppassword(mHttpPasswordET.getText().toString());

    blog.setFullSizeImage(mFullSizeCB.isChecked());
    blog.setScaledImage(mScaledCB.isChecked());
    if (blog.isScaledImage()) {
      EditText scaledImgWidth = (EditText) findViewById(R.id.scaledImageWidth);

      boolean error = false;
      int width = 0;
      try {
        width = Integer.parseInt(scaledImgWidth.getText().toString().trim());
      } catch (NumberFormatException e) {
        error = true;
      }

      if (width == 0) error = true;

      if (error) {
        AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(BlogPreferencesActivity.this);
        dialogBuilder.setTitle(getResources().getText(R.string.error));
        dialogBuilder.setMessage(getResources().getText(R.string.scaled_image_error));
        dialogBuilder.setPositiveButton(
            "OK",
            new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int whichButton) {}
            });
        dialogBuilder.setCancelable(true);
        dialogBuilder.create().show();
        return;
      } else {
        blog.setScaledImageWidth(width);
      }
    }

    blog.setMaxImageWidth(mImageWidthSpinner.getSelectedItem().toString());

    long maxImageWidthId = mImageWidthSpinner.getSelectedItemId();
    int maxImageWidthIdInt = (int) maxImageWidthId;

    blog.setMaxImageWidthId(maxImageWidthIdInt);

    blog.setLocation(mLocationCB.isChecked());

    blog.save(originalUsername);

    if (WordPress.getCurrentBlog().getId() == blog.getId()) WordPress.currentBlog = blog;

    // exit settings screen
    Bundle bundle = new Bundle();

    bundle.putString("returnStatus", "SAVE");
    Intent mIntent = new Intent();
    mIntent.putExtras(bundle);
    setResult(RESULT_OK, mIntent);
    finish();
  }
Example #15
0
 @Override
 protected void onPause() {
   sensorManager.unregisterListener(sensorListener);
   super.onPause();
 }
 /* Remove the locationlistener updates when Activity is paused */
 @Override
 protected void onPause() {
   super.onPause();
   //		myLocationMarkerOption = null;
   locationManager.removeUpdates(this);
 }
 public void onPause() {
   super.onPause();
 }