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

前端 未结 4 1429
粉色の甜心
粉色の甜心 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 18:58

    Hopefully, you've figured this out by now. But for anyone else who stumbles upon this one. The NullPointerException you were getting was caused by the ArrayList never being initialized.

    This would fix it:

    private Chapitre(){
        listVideo = new ArrayList

提交回复
热议问题