Fragment, save large list of data on onSaveInstanceState (how to prevent TransactionTooLargeException)
问题 In my app, I have Fragment which is inside ViewPager. Fragment contains RecyclerView with list of data fetched from web api based on user selection. On my Fragment onSaveInstanceState I save list data to Bunde, to keep the data on configuration changes etc. public void onSaveInstanceState(Bundle savedState) { super.onSaveInstanceState(savedState); savedState.putParcelableArrayList(LIST_STORAGE_KEY, new ArrayList<>(mItemAdapter.getModels())); } Now I have started to see