In my project I have to write and read ArrayList<String>to send, I tried with writeList and writeStringList, but did not use it, I get exceptions when reading lists.
ArrayList<String>
Can someone help me with this?
Thanks in advance.
@JeremyRoman by: writeStringList, readStringListand createStringArrayListall there on Parcel, since the API 1.
writeStringList
readStringList
createStringArrayList
Parcel
use this to write:
bundle.putStringArrayList(KEY, stringArrayList);
and it is as follows:
ArrayList<String> stringArrayList = bundle.getStringArrayList(KEY);