// save instance state for rotations
 @Override
 public void onSaveInstanceState(Bundle savedInstanceState) {
   // Save UI state changes to the savedInstanceState.
   // This bundle will be passed to onCreate if the process is
   // killed and restarted.
   savedInstanceState.putString("searchTerm", searchTerm);
   super.onSaveInstanceState(savedInstanceState);
 }
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    if (mCurrentRenameGesture != null) {
      outState.putLong(GESTURES_INFO_ID, mCurrentRenameGesture.gesture.getID());
    }
  }
Пример #3
0
 /** {@inheritDoc}. */
 @Override
 protected void onSaveInstanceState(Bundle savedInstanceState) {
   Log.d(TAG, "BEGIN onSaveInstanceState.");
   savedInstanceState.putStringArrayList(
       SAVED_INSTANCE_KEY_PRIVACY_LISTS, (ArrayList<String>) mPrivacyListNames);
   Log.d(TAG, "END onSaveInstanceState.");
   super.onSaveInstanceState(savedInstanceState);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   long[] selectedArray = new long[mSelected.size()];
   for (int i = 0; i < mSelected.size(); i++) selectedArray[i] = mSelected.get(i);
   outState.putLongArray(BUNDLE_SELECTED_ITEMS_KEY, selectedArray);
   outState.putBoolean(BUNDLE_TOGGLED_KEY, mToggled);
 }
Пример #5
0
 @Override
 protected void onSaveInstanceState(Bundle icicle) {
   super.onSaveInstanceState(icicle);
   // Save list state in the bundle so we can restore it after the
   // QueryHandler has run
   icicle.putParcelable(LIST_STATE_KEY, getListView().onSaveInstanceState());
   icicle.putBoolean(FOCUS_KEY, getListView().hasFocus());
   icicle.putInt(SORT_MODE_KEY, mSortMode);
 }
Пример #6
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   if (lv != null) {
     // ListViewの位置
     outState.putInt("lvFirstVisiblePosition", lv.getFirstVisiblePosition());
     outState.putInt("lvGetTop", lv.getChildAt(0).getTop());
   }
 }
  @Override
  public void onSaveInstanceState(Bundle outState) {
    pHolder.put("iconArrayList", iconArrayList);
    pHolder.put("appNameArrayList", appNameArrayList);
    pHolder.put("itemSkelArrayList", itemSkelArrayList);
    outState.putParcelable("parcel", pHolder);
    outState.putBoolean("iconsReceived", iconsReceived);

    super.onSaveInstanceState(outState);
  }
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    final PreferenceScreen preferenceScreen = getPreferenceScreen();
    if (preferenceScreen != null) {
      Bundle container = new Bundle();
      preferenceScreen.saveHierarchyState(container);
      outState.putBundle(PREFERENCES_TAG, container);
    }
  }
Пример #9
0
  /**
   * Save state, the application is going to get moved out of memory
   *
   * @see http://stackoverflow.com/questions/151777/how-do-i-save-an-android-applications-state
   */
  @Override
  public void onSaveInstanceState(Bundle savedInstanceState) {
    super.onSaveInstanceState(savedInstanceState);

    savedInstanceState.putSerializable("stattypeFrom", m_refFromName);
    savedInstanceState.putSerializable("stattypeTo", m_refToName);

    savedInstanceState.putSerializable("stat", m_iStat);

    // StatsProvider.getInstance(this).writeToBundle(savedInstanceState);
  }
Пример #10
0
 @Override
 protected void onSaveInstanceState(Bundle icicle) {
   super.onSaveInstanceState(icicle);
   // Save list state in the bundle so we can restore it after the
   // QueryHandler has run
   icicle.putParcelable(LIST_STATE_KEY, getListView().onSaveInstanceState());
   icicle.putBoolean(FOCUS_KEY, getListView().hasFocus());
   icicle.putInt(SORT_MODE_KEY, mSortMode);
   /// M: store selected uri and Drmlevel for re_create this activity @{
   icicle.putParcelable(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, mSelectedUri);
   icicle.putInt(DRM_LEVEL, mDrmLevel);
   /// @}
 }
Пример #11
0
  /*
   * (non-Javadoc)
   * @see android.app.Activity#onSaveInstanceState(android.os.Bundle)
   */
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    mState = new Bundle();
    if (mList.getSelectedItemPosition() >= 0) {
      mState.putInt(SLIDE_INDEX, mList.getSelectedItemPosition());
    }

    if (mUri != null) {
      mState.putString(MESSAGE_URI, mUri.toString());
    }

    if (LOCAL_LOGV) {
      Log.v(TAG, "Saving state: " + mState);
    }
    outState.putBundle(STATE, mState);
  }
Пример #12
0
  @Override
  protected void onSaveInstanceState(Bundle out) {
    super.onSaveInstanceState(out);

    out.putIntegerArrayList(KEY_SAVE_LIST_DATA, mListData);
  }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   getSherlock().dispatchSaveInstanceState(outState);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   Log.e(TAG, "onSaveInstanceState");
   outState.putSerializable("mDatas", mDatas);
 }
Пример #15
0
 /*
  * (non-Javadoc)
  * @see android.app.Activity#onSaveInstanceState(android.os.Bundle)
  */
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mHelper.onSaveInstanceState(outState);
 }
Пример #16
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putSerializable(DatabaseAdapter.ID_COL, mNoteId);
 }
Пример #17
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   if (this.session != null) outState.putInt("sess_id", this.session.ID);
 }
Пример #18
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   TextView tv = (TextView) findViewById(R.id.status_text);
   outState.putString(syncMsgKey, tv.getText().toString());
 }
 protected void onSaveInstanceState(Bundle icicle) {
   super.onSaveInstanceState(icicle);
 }
Пример #20
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putSerializable(Wallet.OBJ, walletFather);
 }
Пример #21
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putLong(GameMessages.TABLE, mMessageId);
 }
  @Override
  protected void onSaveInstanceState(Bundle outState) {

    super.onSaveInstanceState(outState);
    outState.putParcelableArrayList(Constants.SUPER_COOKIES, RequestHandler.getCookies());
  }
 @Override
 protected void onSaveInstanceState(@SuppressWarnings("NullableProblems") Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putLong(ACTION_ID_KEY, mCurrentAction.getId());
 }