So I tried the intent method but I always get a red underline under the "putExtra"
here is the code I tried:
next.setOnClickListener {
var i=Intent(this,Screen6::class.java)
i.putExtra("ID", id)
}
How can I do that?
EDIT: the id needed the function to.toString() but now I need to get it from the other activity how is that possible