Buenas tardes
Estoy desarrollando una app ya esta casi terminada, hay una parte de mi app donde yo obtengo mi ubicacion gps, latitud y longitud, y las guardo en 2 Texview
, pero yo necesito mandar esos datos que estan en mi Textview
por medio de webservices, tengo la clase Assynctask
donde mando a llamar los métodos necesarios para mandar a grabar cierta información en la cual debe de ir las coordenadas.
La pregunta es como puedo yo acceder a mis datos que tengo en mi Textview
para yo poderlos mandar por el webservices.
Aquí es donde yo mando a llamar mi método dentro del Assynctask
... y es donde yo debo de mandar mi ubicación gps:
Resultado = webService.LLenarEncabezadoCXCP(Recurso,
"I", //Accion I
0, //Id = 0
O_Cliente.getEmpresa(), //Id de Empresa
Folio,
new Date(),
O_Cliente.getCliente(),
O_Cliente.getProveedor(),
O_Cliente.getMoneda(),
1.0, //Tipo de Cambio por default 1
0, //Cuenta Bancaria
"hugo", //Usuario Captura
6, //Pago Forma
Total, //Saldo
Importe, //Importe
0, //Financiamiento
Descuento,
SubTotal,
Retencion1,
Retencion2,
IEPS,
IVA,
0, //ISH,
Total, //Total
Total, //totalaplicado,
"A", //status,
"", //usucariocancela,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, //Numero1...Numero10
String.valueOf(lblLatitud), String.valueOf(lblLongitud),"","","","","","","","", //Texto1...Texto10
new Date(),new Date(),new Date(),new Date(),new Date(),new Date(), //Fecha1...Texto6
"", //Observacion
0,0,0,0,0,0, //Catalogo1...Catalogo6
"", //ordencompra
0, //concepto
"", //observacioncancelacion
0, //origenventacompra,
0 //origeninventario
);
if (Resultado.equals("OK"))
{
for(int i=0;i<DetalleArrayList.size();i++) {
if (((DetalleCxP)DetalleArrayList.get(i)).TotalAplicado>0)
{
DFactor = ((DetalleCxP)DetalleArrayList.get(i)).TotalAplicado / ((DetalleCxP)DetalleArrayList.get(i)).Total;
Resultado = webService.LLenarDetalleCXCP(Recurso,
"I", //Accion
0, //id
((DetalleCxP)DetalleArrayList.get(i)).getId(), //Origen
((DetalleCxP)DetalleArrayList.get(i)).getDocumento(), //OrigenDocumento
(Double)(((DetalleCxP)DetalleArrayList.get(i)).Importe*DFactor), //Importe
(Double)0.0, //Financiamiento
(Double)(((DetalleCxP)DetalleArrayList.get(i)).Descuento*DFactor), //Descuento
(Double)(((DetalleCxP)DetalleArrayList.get(i)).SubTotal*DFactor), //Subtotal
(Double)(((DetalleCxP)DetalleArrayList.get(i)).Retencion1*DFactor), //Retencion1
(Double)(((DetalleCxP)DetalleArrayList.get(i)).Retencion2*DFactor), //Retencion2
(Double)(((DetalleCxP)DetalleArrayList.get(i)).IEPS*DFactor), //IEPS
(Double)(((DetalleCxP)DetalleArrayList.get(i)).IVA*DFactor), //IVA
(Double)0.0, //ISH
(Double)(((DetalleCxP)DetalleArrayList.get(i)).Total*DFactor), //Total
((DetalleCxP)DetalleArrayList.get(i)).getSaldo(), //Saldo
"Android App" //Referencia
);
}
}
}