Passing ArrayList Between multiple Activities

前端 未结 6 851
暖寄归人
暖寄归人 2020-12-10 06:11

I am trying to pass an ArrayList of Objects between multiple activities in my application. Is it possible to do this using an Intent using the setData() method?

6条回答
  •  [愿得一人]
    2020-12-10 06:33

    You can make the arraylist static where you are defining it, and only pass the position to the next activity

提交回复
热议问题