ImageView简单加载网络图片

private void loadImage() {
		mImageView = (ImageView) findViewById(R.id.imageView);
		try {
			URL url = new URL("http://images.csdn.net/20130609/zhuanti.jpg");
			mImageView.setImageBitmap(BitmapFactory.decodeStream(url.openStream()));
		} catch (Exception e) {
			
		}

	}

你可能感兴趣的:(ImageView简单加载网络图片)