gt:                 String input = Rollno.getText().toString();
context: package appteam.nith.hillffair.activities;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.design.widget.TextInputLayout;
  import android.support.v7.app.AppCompatActivity;
  import android.text.Editable;
  import android.text.TextWatcher;
  import android.util.Log;
  import android.util.Patterns;
  import android.view.KeyEvent;
  import android.view.View;
  import android.view.Window;
  import android.view.WindowManager;
  import android.widget.Button;
  import android.widget.CheckBox;
  import android.widget.EditText;
  import android.widget.Toast;
  
  import appteam.nith.hillffair.R;
  import appteam.nith.hillffair.application.SharedPref;
  import appteam.nith.hillffair.models.Register;
  import appteam.nith.hillffair.utilities.APIINTERFACE;
  import appteam.nith.hillffair.utilities.Utils;
  
  import net.steamcrafted.loadtoast.LoadToast;
  
  import java.util.regex.Matcher;
  import java.util.regex.Pattern;
  
  import retrofit2.Call;
  import retrofit2.Callback;
  import retrofit2.Response;
  
  
  public class SignUpActivity extends AppCompatActivity {
  
  
      private static final String TAG ="signup" ;
      private LoadToast loadToast;
      String name;
      String rollno;
      String email;
      String phoneno;
      String password;
      View focusView = null;
      boolean isemail = false, ispassword = false, isphone = false, isnitian = false, isValidRollNo = false, isName = false;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          SharedPref pref= new SharedPref(this);
          setTheme(pref.getThemeId());
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_signup);
          loadToast = new LoadToast(this);
          final EditText Name = (EditText) findViewById(R.id.name);
          final EditText Rollno = (EditText) findViewById(R.id.rollno);
          final EditText Email = (EditText) findViewById(R.id.email);
          final EditText Phoneno = (EditText) findViewById(R.id.phone);
          final EditText Password = (EditText) findViewById(R.id.pwd);
          final EditText ConfirmPassword = (EditText) findViewById(R.id.repwd);
          final CheckBox checkBox = (CheckBox) findViewById(R.id.choice_register);
          isemail = Utils.checkData(Email.getText().toString());
          ispassword = Utils.checkData(Password.getText().toString());
          isphone = Utils.checkData(Phoneno.getText().toString());
  
          final TextInputLayout nameTextInputLayout = (TextInputLayout) findViewById(R.id.textinputlayoutname);
          final TextInputLayout emailTextInputLayout = (TextInputLayout) findViewById(R.id.input_email);
          final TextInputLayout passwordTextInputLayout = (TextInputLayout) findViewById(R.id.input_pwd);
          final TextInputLayout confirmTextInputLayout = (TextInputLayout) findViewById(R.id.input_repwd);
          final TextInputLayout phonenoTextInputLayout = (TextInputLayout) findViewById(R.id.input_phone);
          final TextInputLayout rollnoTextInputLayout = (TextInputLayout) findViewById(R.id.input_roll);
  
          Button registrationButton = (Button) findViewById(R.id.signup_button);
          registrationButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  if (isName && isemail && ispassword && isphone && isPasswordValid(Password.getText().toString()) && ConfirmPassword.getText().toString().equals(Password.getText().toString()) ) {
                      rollno = Rollno.getText().toString();
                      phoneno = Phoneno.getText().toString();
                      name = Name.getText().toString();
                      email = Email.getText().toString();
                      password = Password.getText().toString();
                      loadToast.setText("Loading..");
                      loadToast.show();
  
                      if (isnitian && isValidRollNo) {
                          registrationProcessWithRetrofit(email, password, rollno, phoneno, name, true);
                      } else {
                          registrationProcessWithRetrofit(email, password, "", phoneno, name, false);
                      }
  
                  }
                  else
                  {
                      Toast.makeText(SignUpActivity.this, "Please Enter The correct data", Toast.LENGTH_SHORT).show();
                  }
  
              }
          });
  
  
          Email.addTextChangedListener(new TextWatcher() {
                                           @Override
                                           public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
                                           }
  
                                           @Override
                                           public void onTextChanged(CharSequence s, int start, int before, int count) {
                                           }
  
                                           @Override
                                           public void afterTextChanged(Editable s) {
  
  
                                               if (Utils.checkData(Email.getText().toString()) && Patterns.EMAIL_ADDRESS.matcher(Email.getText().toString()).matches()) {
                                                   emailTextInputLayout.setErrorEnabled(false);
                                                   isemail = true;
                                               } else {
  
                                                        emailTextInputLayout.setError("PLEASE ENTER THE EMAIL");
  
                                                   isemail = false;
                                               }
                                           }
  
                                       }
          );
  
          ConfirmPassword.addTextChangedListener(new TextWatcher() {
              @Override
              public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
              }
  
              @Override
              public void onTextChanged(CharSequence s, int start, int before, int count) {
  
              }
  
              @Override
              public void afterTextChanged(Editable s) {
                  if (Utils.checkData(ConfirmPassword.getText().toString()) && ConfirmPassword.getText().toString().equals(Password.getText().toString())) {
                      confirmTextInputLayout.setErrorEnabled(false);
                      ispassword = true;
                  } else {
                      confirmTextInputLayout.setError("PASSWORD DOES NOT MATCH");
                      ispassword = false;
  
                  }
              }
          });
  
  
          Password.addTextChangedListener(new TextWatcher() {
              @Override
              public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
              }
  
              @Override
              public void onTextChanged(CharSequence s, int start, int before, int count) {
  
              }
  
              @Override
              public void afterTextChanged(Editable s) {
                  if (Utils.checkData(Password.getText().toString()) && Password.getText().toString().length() > 8) {
  
                      passwordTextInputLayout.setErrorEnabled(false);
  
                  } else {
                      passwordTextInputLayout.setErrorEnabled(true);
                      passwordTextInputLayout.setError("PLEASE ENTER MORE THAN 8 CHARACTERS");
  
                  }
              }
          });
  
  
          Phoneno.addTextChangedListener(new TextWatcher() {
              @Override
              public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
              }
  
              @Override
              public void onTextChanged(CharSequence s, int start, int before, int count) {
  
              }
  
              @Override
              public void afterTextChanged(Editable s) {
                  if (Phoneno.getText().toString().length() == 10) {
                      phonenoTextInputLayout.setErrorEnabled(false);
                      isphone = true;
                  } else {
                      phonenoTextInputLayout.setError("NOT A VALID PHONE NUMBER");
                      isphone = false;
                  }
              }
          });
  
  
          Rollno.addTextChangedListener(new TextWatcher() {
              @Override
              public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
              }
  
              @Override
              public void onTextChanged(CharSequence s, int start, int before, int count) {
  
              }
  
              @Override
              public void afterTextChanged(Editable s) {
  
  