ListView显示网络图片
1.http://mobile.51cto.com/android-266971.htm
2.http://www.cnblogs.com/xiaoxiaoboke/archive/2011/06/24/2089035.html
3.http://www.eoeandroid.com/thread-22678-1-1.html
一般解析xml后获得图片地址,需要显示到ImageView中,
public Bitmap getBitmap(){ Bitmap mBitmap = null; try { URL url = new URL(imageUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStream is = conn.getInputStream(); mBitmap = BitmapFactory.decodeStream(is); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return mBitmap; }