List<String> readStringArray in Parcelable
-
29-10-2019 - |
Question
Most of my Parcelable is working; Simple things like out.writeString, out.writeInt, in.readString() etc are working perfectly.
My problem is when I want to Parcel an Array / List / ArrayList (I've tried them all).
I'm currently trying with:
List<String>
and
out.writeStringList()
works fine.
Eclipse suggests that there is a
in.readStringList(List<String> list)
to read that data back in. But it's not doing it for me.
What are we supposed to put into the ()?
I've tried nothing, with the result 'Add argument to match...' I've tried null, reference to the getter amongst others; which all return the error 'cannot convert from void to List'
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow