1//Send value from HomeActivity
2
3val intent = Intent(this@HomeActivity,ProfileActivity::class.java)
4intent.putExtra("Username","John Doe")
5startActivity(intent)
6
7//Get values in ProfileActivity
8
9val profileName=intent.getStringExtra("Username")