In my project, I have to write and read ArrayList<String> to parcel, I tried with writeList and writeStringList but no use, I am getting exceptions while reading the lists.
Could any one help me in this?
Thanks In advance.
In my project, I have to write and read ArrayList<String> to parcel, I tried with writeList and writeStringList but no use, I am getting exceptions while reading the lists.
Could any one help me in this?
Thanks In advance.
By @JeremyRoman: writeStringList, readStringList and createStringArrayList all exist on Parcel since API 1.
use this to write:
bundle.putStringArrayList(KEY, stringArrayList);
and this to read:
ArrayList<String> stringArrayList = bundle.getStringArrayList(KEY);