I\'m trying to pass array lists between activities in Android. The lists contains strings. I\'ve read a lot about Parcelable. Would I need to create a Parcelable to pass a <
It depends on the type of arraylist
putIntegerArrayListExtra(String name, ArrayList
putParcelableArrayListExtra(String name, ArrayList extends Parcelable> value)
putStringArrayListExtra(String name, ArrayList
putCharSequenceArrayListExtra(String name, ArrayList
Then you can read from you next activity by replacing put
with get
with key string as argument,eg
myIntent.getStringArrayListExtra("arrayListName");