Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EditText ET_name;
- EditText ET_username;
- EditText ET_password;
- EditText ET_age;
- EditText ET_email;
- Button btnFinish;
- private int _Chuccount_Id = 0;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_signup);
- ET_name = findViewById(R.id.name);
- ET_username = findViewById(R.id.username);
- ET_password = findViewById(R.id.password);
- ET_age = findViewById(R.id.age);
- ET_email = findViewById(R.id.email);
- btnFinish = findViewById(R.id.btnFinish);
- btnFinish.setOnClickListener(this);
- _Chuccount_Id = 0;
- Intent intent = getIntent();
- _Chuccount_Id = intent.getIntExtra("chuccount_Id", 0);
- ChuccountRepo repo = new ChuccountRepo(this);
- Chuccount chuccount;
- chuccount = repo.getStudentById(_Chuccount_Id);
- ET_age.setText(String.valueOf(chuccount.age));
- ET_name.setText(chuccount.name);
- ET_email.setText(chuccount.email);
- ET_username.setText(chuccount.username);
- ET_password.setText(chuccount.password);
- }
Add Comment
Please, Sign In to add comment