I am passing ArrayList<Custom implements Parcelable> myList to an Intent.
Both of the following ways seem to work fine with putting the ArrayList into the new Intent.
results.putParcelableArrayListExtra("list", myList);
results.putExtra("list", myList);
When I check mIntent/mExtras/mMap/table it is everything there. But in the onCreate method of the intent some of that data seems to be lost. I am getting the ArrayList then with myList = (ArrayList<Custom>) this.getIntent().getParcelableArrayListExtra("list");
For example the list contains five items[a], [b], [c], [d] and [e]:
put... get...
[a] -> [a]
[b] -> null
[c] -> [b]
[d] -> null
[e] -> [c]
It seems that every second item in the new list is not intended and takes up one place that is missing at the end.
Can you tell me what I am doing wrong?
try this my friend:
hope this helps