Passing arraylist in intent from one activity to another

前端 未结 1 669
北荒
北荒 2020-12-04 01:09

I have a class \'Product\' and i need to pass the arraylist of \'Product\' objects from one activity to another. I read that i can do so by making my Product class as Parce

相关标签:
1条回答
  • 2020-12-04 01:31

    Yes, the correct way is to use Parcelable or do the serialization to another kind of primitive object that you can put to Intent's extras

    0 讨论(0)
提交回复
热议问题