Passing ArrayList between intents loses data

前端 未结 3 1856
小蘑菇
小蘑菇 2021-01-27 13:11

I am passing ArrayList myList to an Intent. Both of the following ways seem to work fine with putting the ArrayList into the new

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-27 14:04

    Try retrieving the array with

    getIntent().getExtras().getParcelableArrayList(yourArray);
    

提交回复
热议问题