Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onClick(View v) {
- try {
- //fillStudentInformation();
- //isValidStudentID(studentID);
- studentFullName = editTextStudentFullName.getText().toString();
- studentID = Long.parseLong(editTextStudentID.getText().toString());
- if (studentID < 9999999999L || studentID > 99999999999L) { //1.After this thing happened
- editTextStudentID.setError("Wrong ID"); //2.It will skipped here
- editTextStudentID.requestFocus();
- } else {
- email = editTextEmail.getText().toString(); //3.Then here, they not read
- campus = spinnerCampus.getSelectedItem().toString();
- course = spinnerCourse.getSelectedItem().toString();
- intake = editTextIntake.getText().toString();
- createFirebaseAuth(editTextEmail.getText().toString(), editTextStudentID.getText().toString());//4.Only this read
- }
- } catch (NumberFormatException e) {
- if (TextUtils.isEmpty(editTextStudentFullName.getText().toString())) {
- editTextStudentFullName.setError("Enter Your Full Name");
- editTextStudentFullName.requestFocus();
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement