I need to pass it from recyclerview
I tried:
val extras = Bundle()
extras.putString("userNickname", meme.nickname)
extras.putParcelableArray("memes", ArrayList(memes))
val i = Intent(context, UserMemes::class.java)
i.putExtras(extras)
context.startActivity(i)
based on this answer: Pass a mutableList from activity A to activity B in Kotlin.
and get the error Type mismatch: inferred type is Memes! but Parcelable! was expected
on ArrayList(memes)
I also need to know how to retrieve it on activity B
Thanks in advance!