Passing enum or object through an intent (the best solution)

前端 未结 15 933
时光取名叫无心
时光取名叫无心 2020-12-04 05:41

I have an activity that when started needs access to two different ArrayLists. Both Lists are different Objects I have created myself.

Basically I need a way to pa

15条回答
  •  时光取名叫无心
    2020-12-04 06:14

    Don't use enums. Reason #78 to not use enums. :) Use integers, which can easily be remoted through Bundle and Parcelable.

提交回复
热议问题