pass data bettwen activity kotlin
Send value from HomeActivity
val intent = Intent(this@HomeActivity,ProfileActivity::class.java)
intent.putExtra("Username","Data Here")
startActivity(intent)
Get values in ProfileActivity
val profileName=intent.getStringExtra("Username")