2012-08-01 67 views

回答

1
ImageView pic = (ImageView) findViewById(R.id.image); 
URL img_url = new URL("<Your url>"); 
Bitmap bmp = BitmapFactory.decodeStream(img_url.openConnection().getInputStream()); 
pic.setImageBitmap(bmp); 

替換爲您的實際URL並在xml中創建一個imageview。瞧!你很好走。

相關問題