wseng92
Android Enthusiast
I have a mutableList which declared as below.
How to pass newList through intent?
I tried this but not working.
Error
Java:
var newList: MutableList<String> = mutableListOf()
How to pass newList through intent?
I tried this but not working.
Java:
mIntent.putParcelableArrayListExtra("mFilePath", ArrayList(newList))
Error
Code:
Type inference failed. Expected type mismatch: required:
java.util.ArrayList<out Parcelable!>! found:
kotlin.collections.ArrayList<String!> /* =
java.util.ArrayList<String!> */