📌  相关文章
📜  传递数据 bettwen 活动 kotlin - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:39.883000             🧑  作者: Mango

代码示例1
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")