1->2 1中代码: intent.putExtra("username",s); 2中代码: Intent intent=getIntent(); String s=intent.getStringExtra("username");