通过setImageURI设置网络上面的图片

来源:互联网 发布:淘宝网一元拍卖 编辑:程序博客网 时间:2024/05/17 09:21

转自:http://blog.csdn.net/zhulingjun2011/article/details/8059941

[java] view plaincopy
  1. 设置imageView显示网络上的图片  
[java] view plaincopy
  1. picUrl = new URL(getIntent().getExtras().getString("map_url"));  
  2. Bitmap pngBM = BitmapFactory.decodeStream(picUrl.openStream());   
  3. mapIMG.setImageBitmap(pngBM);  

原创粉丝点击