Android Activity 跳转传参 发表于 2022-08-23 | 分类于 Android 传递参数 123456Intent intent = new Intent(MainActivity.this, addPassword.class);intent.putExtra("name","cs");startActivity(intent); 获取参数 1234Intent intent = getIntent();String name = intent.getStringExtra("name");