Exemplo n.º 1
0
 public void validarUsuario() {
   user = txtUsuario.getText().toString();
   pass = txtContrasena.getText().toString();
   if ((user.equalsIgnoreCase("")) || (pass.equalsIgnoreCase(""))) {
     funciones.alertasDialog(getString(R.string.error_2), getString(R.string.mensaje_alerta_2));
   } else {
     obtenerPerfil();
   }
 }
Exemplo n.º 2
0
 /** *************Procesos de almacenado************** */
 public boolean guardarPerfil(Perfil perfil, String url) {
   boolean res = false;
   try {
     boolean success = perfil.isSuccess();
     if (success) {
       res = perfilController.crear(perfil, contexto);
       cargarConfiguracion(perfil, url);
     } else {
       funciones.alertasDialog(getString(R.string.error_3), getString(R.string.mensaje_alerta_3));
     }
   } catch (Exception ex) {
     Log.e("Login(guardarPerfil)", "Error: " + ex.getMessage());
   }
   return res;
 }