There is a list of lists (ArrayList>) it stores data that I have to display on the widget itself. They turn out downloading from the Internet HTML dock. and parsing it. For each widget its such a list, how do I transfer it between classes? Just as a variable? Or through the Bundle | Parcelable. In general, we need good advice.
Bundle
, etc., or do my ownBundle
for anArrayList
. - user189127public class MyList extends ArrayList<ArrayList<String>> implements Parselable {..}
I also do not really understand how to write it. Or rather, if you do your own ArrayList, you will have to write another class -public class MyInnerList extends ArrayList<String> implements Parselable {..}
And what should I do as a List of MyInnerList objects? - Grigory ZaripovBundle
. On stackoverflow, your problem withArrayList()
considered specifically, here is ru.stackoverflow.com/questions/366515/arraylist-%D0%B2-bundle I think here you will answer all your questions :). - user189127