@Override protected void process() { // TODO Auto-generated method stub String codigo = txtCodigo.getText().toString(); String ruc = txtRuc.getText().toString(); String dni = txtDni.getText().toString(); consultarClienteProxy.setCodigo(codigo); consultarClienteProxy.setRuc(ruc); consultarClienteProxy.setDni(dni); consultarClienteProxy.execute(); }
@Override protected void processOk() { // TODO Auto-generated method stub boolean isExito = consultarClienteProxy.isExito(); if (isExito) { int status = consultarClienteProxy.getResponse().getStatus(); if (status == 0) { List<ClienteResumenTO> clientes = consultarClienteProxy.getResponse().getClientes(); RTMApplication application = (RTMApplication) contextProvider.get().getApplicationContext(); application.setClienteTO(clientes.get(0)); adap = new EfficientAdapter(this, clientes); setListAdapter(adap); } } super.processOk(); }