val intent = Intent(this, CLASS::class.java)
intent.putExtra("Text", Text)
intent.putExtra("Text2", Text2)
startActivity(intent)
Put extra
The code creates an Intent instance, which provides information about the intent. It then sets two extra values for the Intent. These values are passed to the startActivity() method.
0 Comments
Add Comment
Log in to add a comment