Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Async HTTP Client loads too much data?

After I executed this request I only receive this message in my logcat:

V/AsyncHttpRH: Progress 47 from 1 (4700%)

AsyncHttpClient client = new AsyncHttpClient();
    RequestParams params = new RequestParams();
    client.post("http://staglay.com/test.php", params, new TextHttpResponseHandler() {
                @Override
                public void onSuccess(int statusCode, Header[] headers, String res) {

                    System.out.print(res);

                }

                @Override
                public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {
                    Log.d("ASYNC-HTTP-REQUEST", "FAIL");
                }
            }
    );

Does anyone know why it is loading too much data or shows that it has received 4700%?

Also it does not System.out.print the result. Can someone explain this to me please?

like image 521
Pepe Bellin Avatar asked Sep 10 '26 12:09

Pepe Bellin


1 Answers

Use Log.d rather than System.out.print

like image 151
Gaurav Sarma Avatar answered Sep 12 '26 05:09

Gaurav Sarma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!