Android: ImageSwitcher
How开发者_如何学JAVA do I use the imageswithcer to load picture from my website,, I mean, do I need to send images as binary? or can I use Imageswitcher on URls on the pictures?
You cannot use URIs to fetch remote images. You need to fetch the image and store it locally. One convenient way is to use the Drawable.createFromStream method. For some good links, see the answer from Macarse here: Does ImageView.setImageURI(Uri uri) work with remote files?
精彩评论