Passing ArrayList between intents loses data

前端 未结 3 1915
小蘑菇
小蘑菇 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条回答
  •  醉酒成梦
    2021-01-27 14:05

    try this my friend:

    intent.putParcelableArrayListExtra("tag",yourObjectImplementsParceable);
    
    xxx = (ArrayList) intent.getParcelableArrayListExtra("tag");
    

    hope this helps

提交回复
热议问题