@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(STATE_LIST, getListAdapter().getList()); outState.putParcelableArrayList( STATE_CAB_CHECKED_ITEMS, new ArrayList<Parcelable>(mCheckedItems)); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (mActivatedPosition != ListView.INVALID_POSITION) { outState.putInt(STATE_ACTIVATED_POSITION, mActivatedPosition); } }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (mActivatedPosition != ListView.INVALID_POSITION) { // Serialize and persist the activated item position. outState.putInt(STATE_ACTIVATED_POSITION, mActivatedPosition); } }
@Override public void onSaveInstanceState(final Bundle outState) { super.onSaveInstanceState(outState); listAdapter.onSaveInstanceState(outState); final ListView listView = getListView(); final int firstPosition = listView.getFirstVisiblePosition(); final View firstView = listView.getChildAt(firstPosition); final int top = firstView != null ? firstView.getTop() : 0; outState.putInt(KEY_STATE_FIRST_POS, firstPosition); outState.putInt(KEY_STATE_TOP, top); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putString(STATE_LIST, getListAdapter().getJSONArray().toString()); outState.putInt(STATE_CAB_CHECKED_COUNT, mCheckedCount); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt("curChoice", mCurCheckPosition); outState.putInt("shownChoice", mShownCheckPosition); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putString("token", token); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt("currentChoice", position); }