Guest User

Untitled

a guest
Dec 8th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. private void register(){
  2. String user = etuser.getText().toString();
  3. String pass = etPass.getText().toString();
  4. if(user.isEmpty() && pass.isEmpty()){
  5. displayToast(getString(R.string.UsuarioVacio));
  6. } else if (pass.isEmpty()){
  7. db.addUser(user,"1234","");
  8. displayToast(getString(R.string.UsuarioExito) +
  9. getString(R.string.ContraseñaDefecto));
  10. finish();
  11. }
  12. else{
  13. db.addUser(user,pass,"");
  14. displayToast(getString(R.string.UsuarioExito2));
  15. finish();
  16. }
  17. }
Add Comment
Please, Sign In to add comment