Parceable Arraylist of objects

前端 未结 3 1238
眼角桃花
眼角桃花 2021-01-24 21:50

I\'m trying to pass an ArrayList of Person Objects from the MainActivity to SecondActivity to print the details of the person in a custom listView adapter.

The applicati

3条回答
  •  感动是毒
    2021-01-24 22:05

    You should use another function: intent.putParcelableArrayListExtra(String name, ArrayList value) Google site in main Activity, then intent.getParcelableArrayListExtra to get in second Activity. Hope this help.

提交回复
热议问题