39 lines
1.2 KiB
39 lines
1.2 KiB
package com.example.app1;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.view.View;
|
|
import android.widget.TextView;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
public class shuju extends AppCompatActivity {
|
|
|
|
String name,paswd,sex,ah1,ah2,ah3,ah4;
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.shuju);
|
|
Bundle bundle =this.getIntent().getExtras();
|
|
name = bundle.getString("username");
|
|
paswd = bundle.getString("paswd");
|
|
sex = bundle.getString("sex");
|
|
ah1 = bundle.getString("ah1");
|
|
ah2 = bundle.getString("ah2");
|
|
ah3 = bundle.getString("ah3");
|
|
ah4 = bundle.getString("ah4");
|
|
|
|
TextView show_text = (TextView)findViewById(R.id.tv_shuju);
|
|
show_text.setText("账号:"+name+"\n"+"密码:"+paswd+"\n"+"性别:"+sex+"\n"+"爱好:"+ah1+ah2+ah3+ah4);
|
|
|
|
}
|
|
|
|
public void re1(View view) {
|
|
Intent intent3 = new Intent(shuju.this,MainActivity2.class);
|
|
// intent3.putExtra("name",name);
|
|
// intent3.putExtra("paswd",paswd);
|
|
// setResult(888,intent3);
|
|
this.startActivity(intent3);
|
|
}
|
|
}
|