Guest User

Untitled

a guest
Apr 5th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. EditText ET_name;
  2. EditText ET_username;
  3. EditText ET_password;
  4. EditText ET_age;
  5. EditText ET_email;
  6. Button btnFinish;
  7. private int _Chuccount_Id = 0;
  8.  
  9. @Override
  10. protected void onCreate(Bundle savedInstanceState) {
  11. super.onCreate(savedInstanceState);
  12. setContentView(R.layout.activity_signup);
  13.  
  14. ET_name = findViewById(R.id.name);
  15. ET_username = findViewById(R.id.username);
  16. ET_password = findViewById(R.id.password);
  17. ET_age = findViewById(R.id.age);
  18. ET_email = findViewById(R.id.email);
  19. btnFinish = findViewById(R.id.btnFinish);
  20.  
  21. btnFinish.setOnClickListener(this);
  22.  
  23. _Chuccount_Id = 0;
  24. Intent intent = getIntent();
  25. _Chuccount_Id = intent.getIntExtra("chuccount_Id", 0);
  26.  
  27. ChuccountRepo repo = new ChuccountRepo(this);
  28. Chuccount chuccount;
  29. chuccount = repo.getStudentById(_Chuccount_Id);
  30.  
  31. ET_age.setText(String.valueOf(chuccount.age));
  32. ET_name.setText(chuccount.name);
  33. ET_email.setText(chuccount.email);
  34. ET_username.setText(chuccount.username);
  35. ET_password.setText(chuccount.password);
  36.  
  37. }
Add Comment
Please, Sign In to add comment