从应用程序中发起一个HTTP连接,获得一个图片,并使用ImageView标签进行展现。
	        ImageView iv = new ImageView(context);
	        iv.setId(12351);
	        String imageUrl = "https://blog.30c.org/wp-content/plugins/ck-and-syntaxhighlighter/ckeditor/plugins/smiley/images/100.gif"; //标准HTTP地址即可
	        try {
	            URL myurl = new URL(imageUrl);
	            HttpURLConnection conn = (HttpURLConnection) myurl.openConnection();
	            conn.setDoInput(true);
	            conn.connect();
	            InputStream is = conn.getInputStream();
	            Bitmap bitmap = BitmapFactory.decodeStream(is);
	            is.close();
	            iv.setImageBitmap(bitmap);
	        } catch (Exception e) {
	            // TODO: handle exception
	        }
	        layout.addView(iv);
	可以看到发起一个网络请求是十分简单的。