| |
---|
| | final AccountsRest signUpService = retrofit.create(AccountsRest.class); |
---|
| | Amaryllis amaryllis =(Amaryllis) getApplication(); |
---|
| | String uid = amaryllis.getUid(); |
---|
| | String passWord = amaryllis.getPassword(); |
---|
| | // if(uid.length() != 0 && passWord.length() != 0){ |
---|
| | // signUpService.accountLogin(uid,passWord); |
---|
| | // Intent intent = new Intent(SignUpActivity.this, MainActivity.class); |
---|
| | // startActivity(intent); |
---|
| | // finish(); |
---|
| | // } |
---|
| | if(uid.length() != 0 && passWord.length() != 0){ |
---|
| | signUpService.accountLogin(uid,passWord); |
---|
| | Intent intent = new Intent(SignUpActivity.this, MainActivity.class); |
---|
| | startActivity(intent); |
---|
| | finish(); |
---|
| | } |
---|
| | passWordEditText = (EditText) findViewById(R.id.passWord); |
---|
| | passWordEditText.addTextChangedListener(this); |
---|
| | passWordTextView = findViewById(R.id.passWord); |
---|
| | nameEditText = (EditText) findViewById(R.id.Name); |
---|
| |
---|
| | |