0
이 경고는 무엇을 의미합니까? 여기에 경고가 decodeStream 줄에 poiting됩니다java.net.SocketException : recvfrom 실패 : ECONNRESET
public static Bitmap downloadBitmap(String url) {
if (reachable()) {
HttpEntity entity = null;
Log.i("DLB URL", url);
HttpClient client = new DefaultHttpClient();
HttpGet getRequest = new HttpGet(url);
try {
HttpResponse response = client.execute(getRequest);
final int statusCode = response.getStatusLine().getStatusCode();
if (statusCode != HttpStatus.SC_OK) {
return null;
}
entity = response.getEntity();
if (entity != null) {
InputStream inputStream = null;
try {
System.setProperty("http.keepAlive", "false");
inputStream = entity.getContent();
final Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
return bitmap;
} finally {
if (inputStream != null) {
inputStream.close();
}
}
}
} catch (Exception e) {
Log.i("ABORT", e.toString());
getRequest.abort();
}
}
return null;
}
그 조각 내 코드는하지만, 나는 이것이 무엇을 아무 생각도 없어. 수색에 나는 무언가를 아마 찾아 냈다 그러나 나는 이해하지 않는다 그래서 노동자 실이 없다. 고맙습니다.