List of usage examples for android.os Bundle putParcelableArrayList
public void putParcelableArrayList(@Nullable String key, @Nullable ArrayList<? extends Parcelable> value)
From source file:com.commonsware.cwac.pager.ArrayPagerAdapter.java
@Override public Parcelable saveState() { Bundle state = new Bundle(); state.putParcelableArrayList(KEY_DESCRIPTORS, entries); return (state); }
From source file:org.rubychina.android.activity.RubyChinaIndexActivity.java
@Override public void onTopicSelected(List<Topic> topics, int position) { Intent i = new Intent(this, TopicDetailActivity.class); Bundle bundle = new Bundle(); bundle.putInt(TopicDetailActivity.POS, position); bundle.putParcelableArrayList(TopicDetailActivity.TOPICS, (ArrayList<? extends Parcelable>) topics); i.putExtras(bundle);/* w w w .jav a 2 s.co m*/ startActivity(i); }
From source file:com.android.managedprovisioning.DeviceOwnerProvisioningActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { outState.putBoolean(KEY_CANCEL_DIALOG_SHOWN, mCancelDialogShown); outState.putParcelableArrayList(KEY_PENDING_INTENTS, mPendingProvisioningIntents); }
From source file:com.poepoemyintswe.popularmovies.ui.MainFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(MOVIE, movieAdapter.getResults()); }
From source file:com.bilibili.boxing_impl.ui.BoxingViewActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { if (mSelectedImages != null) { outState.putParcelableArrayList(Boxing.EXTRA_SELECTED_MEDIA, mSelectedImages); }//from w w w .ja va 2 s . com outState.putString(Boxing.EXTRA_ALBUM_ID, mAlbumId); super.onSaveInstanceState(outState); }
From source file:com.permutassep.presentation.view.wizard.ui.ProfessorCityFromFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(ProfessorCityFromFragment.STATES_FROM_KEY, mStates); outState.putParcelableArrayList(ProfessorCityFromFragment.CITIES_FROM_KEY, mCities); outState.putParcelableArrayList(ProfessorCityFromFragment.TOWNS_FROM_KEY, mTowns); outState.putInt(ProfessorCityFromFragment.STATE_FROM_SELECTED_KEY, stateSelectedPosition); outState.putInt(ProfessorCityFromFragment.CITY_FROM_SELECTED_KEY, citySelectedPosition); outState.putInt(ProfessorCityFromFragment.TOWN_FROM_SELECTED_KEY, townSelectedPosition); }
From source file:com.example.android.scopeddirectoryaccess.ScopedDirectoryAccessFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putString(SELECTED_DIRECTORY_KEY, mCurrentDirectoryTextView.getText().toString()); outState.putParcelableArrayList(DIRECTORY_ENTRIES_KEY, mDirectoryEntries); }
From source file:com.github.capone.controller.discovery.DiscoveryListFragment.java
@Override public void onSaveInstanceState(Bundle outState) { ArrayList<Server> servers = new ArrayList<>(adapter.getCount()); for (int i = 0; i < adapter.getCount(); i++) { servers.add(adapter.getItem(i)); }/*from ww w.ja v a2s . co m*/ outState.putParcelableArrayList(EXTRA_SERVERS, servers); }
From source file:me.lizheng.deckviewsample.DeckViewSampleActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { // Save current scroll and the list int currentChildIndex = mDeckView.getCurrentChildIndex(); outState.putInt(CURRENT_SCROLL, currentChildIndex); outState.putParcelableArrayList(CURRENT_LIST, mEntries); super.onSaveInstanceState(outState); }
From source file:com.example.android.wizardpager.wizard.ui.ProfessorCityToFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(ProfessorCityToFragment.STATES_TO_KEY, mStates); outState.putParcelableArrayList(ProfessorCityToFragment.CITIES_TO_KEY, mCities); outState.putParcelableArrayList(ProfessorCityToFragment.TOWNS_TO_KEY, mTowns); outState.putInt(ProfessorCityToFragment.STATE_TO_SELECTED_KEY, stateSelectedPosition); outState.putInt(ProfessorCityToFragment.CITY_TO_SELECTED_KEY, citySelectedPosition); outState.putInt(ProfessorCityToFragment.TOWN_TO_SELECTED_KEY, townSelectedPosition); Log.i("onSaveInstanceState", "onSaveInstanceState launched!"); }