Android, How to use readTypedList method correctly in a Parcelable class?

前端 未结 4 1424
粉色の甜心
粉色の甜心 2020-12-13 18:55

I have two Activities, in the first one, I instanciate an ArrayList of Object myObject. In the second activity, i need to get this Arraylist. I\'ve found a tutorial : http:/

4条回答
  •  遥遥无期
    2020-12-13 19:02

    Also consider initializing the object with an immutable empty list.

    private ArrayList

    More details here: Collections.emptyList() vs. new instance

提交回复
热议问题