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);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With