0
我设置了下面的Http请求。但为什么这个HTTP请求没有响应?为什么这个http请求没有响应?
AsyncHttpClient client = new AsyncHttpClient();
Log.d("click","click");
client.get("http://www.baidu.com", new AsyncHttpResponseHandler()
{
@Override
public void onSuccess(String response) {
Log.d("response",response);
//System.out.println(response);
}
});
任何人的帮助是非常感谢。
实现onFailure方法并打印出响应字符串 – Infinity