ImageViewにhttp経由の画像を表示する方法
ImageView imageView = new ImageView(); Uri uri = Uri.parse("http://hoge.jp/sample.img"); imageView.setImageURI(uri)
ではうまく行かなかった。
ImgView.のsetImageDrawable(Drawable drawable)を使うのがよいらしい。
Drawableをインスタンスを作る必要があるのでけど、ちょっと、ややこしい。
以下のページにサンプルあり。
Android: View image from the?web
Simple example on how to get and display image from the web without saving it to local storage in Android.
Download the source: Example1.zip