Skip to content

Instantly share code, notes, and snippets.

@ajamaica
Created February 10, 2015 16:21
Show Gist options
  • Save ajamaica/1ce1da8f229744960790 to your computer and use it in GitHub Desktop.
Save ajamaica/1ce1da8f229744960790 to your computer and use it in GitHub Desktop.
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
asyncHttpClient.prepareGet("http://hsasolutions.cloudapp.net/OptiCompraWS/OptiC/B/Opticompra.asmx/EntregaPrecios?pIdMuni=0&id_prod=339&pos_lat=0&pos_lon=0&Login_app=0&Password_app=0&pVers=0&pRadio=0").execute(new AsyncCompletionHandler(){
@Override
public Response onCompleted(Response response) throws Exception{
// Do something with the Response
// ... `
return response;
}
@Override
public void onThrowable(Throwable t){
// Something wrong happened.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment