사실 난 내 문제에 대한 해결책을 발견, 내가 여기에 게시됩니다
Bitmap bmp =null;
DefaultHttpClient client = new MyHttpClient(ShowNotification.this);
HttpGet get = new HttpGet(url);
HttpResponse getResponse = null;
try {
getResponse = client.execute(get);
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String entityContents="";
HttpEntity responseEntity = getResponse.getEntity();
BufferedHttpEntity httpEntity = null;
try {
httpEntity = new BufferedHttpEntity(responseEntity);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
InputStream imageStream = null;
try {
imageStream = httpEntity.getContent();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
bmp = BitmapFactory.decodeStream(imageStream);
ImageView imgView =(ImageView)findViewById(R.id.imgView);
imgView.setImageBitmap(bmp);
개인 드로어 블 grabImageFromUrl (문자열 URL)는 예외 { \t 반환 그리기가 발생합니다. createFromStream ((InputStream) 새 URL (url) .getContent(), "src"); } -하지만 그 문제가 아니라 문제는 SSL 예외 메신저지고, 내가 HTTPClient를 사용해야하지만 난 단지 어떻게 생각이 .. – Mithrand1r
봐 http://developer.android.com/reference/org/apache/http /client/HttpClient.html 몇 가지 아이디어를 찾으려면 –
이것은 더 명확합니다 http://www.vogella.com/articles/AndroidNetworking/article.html –