I have an arraylist of objects. ie ArrayList.
I want to pass this to a new Activity. I tried to use putParcelableArrayList but it has issues with the object. I remov
1) Make sure the object you want to parcel has correctly implemented Parcelable
2) Use this argument in putParcelableArrayList: new ArrayList<>(list)
Example:
protected void onSaveInstanceState(Bundle outstate) {
super.onSaveInstanceState(outstate);
outstate.putParcelableArrayList("myObjects", new ArrayList<>(myListOfObjects));
}