摘要:
问题一:当我们在使用DefaultHttpClient进行Http网络请求的时候,你会发现开启多个线程进行请求会有阻塞的问题出现。解决方法:(通过Java的线程阻塞处理synchronized) synchronized (client) { HttpResponse httpResponse = client.execute(request); int statusCode = httpResponse.getStatusLine().getStatusCode(); LogUtil.info(TAG, "sta... 阅读全文
posted @ 2013-03-12 12:06
暗殇
阅读(174)
评论(0)
推荐(0)

浙公网安备 33010602011771号