异步 HTTP 客户端加载了太多数据?
Async HTTP Client loads too much data?
执行此请求后,我仅在 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");
}
}
);
有谁知道为什么加载太多数据或显示已收到 4700%?
它也没有 System.out.print
结果。
有人可以给我解释一下吗?
使用Log.d而不是System.out.print
执行此请求后,我仅在 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");
}
}
);
有谁知道为什么加载太多数据或显示已收到 4700%?
它也没有 System.out.print
结果。
有人可以给我解释一下吗?
使用Log.d而不是System.out.print