how to set intent action kotlin android code example
Example 1: intent kotlin example
val intent = Intent(this,SomeActivity::class.java)
startActivity(intent)
Example 2: kotlin android intent pass data
//Send value from HomeActivity
val intent = Intent(this@HomeActivity,ProfileActivity::class.java)
intent.putExtra("Username","John Doe")
startActivity(intent)
//Get values in ProfileActivity
val profileName=intent.getStringExtra("Username")