的Andr​​oid如何显示和URL图像 [英] Android how to display and image from URL

查看:129
本文介绍了的Andr​​oid如何显示和URL图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在我的Andr​​oid应用程序显示一些图像。某些网址只是正常显示图像。某些图片作品,有些是行不通的。比如试着从URL显示此图像:

I'm having trouble displaying SOME images on my android app. Just normal display image from certain URL. Some images works, some just doesn't work. For instance try displaying this image from URL:

http://img191.imageshack.us/img191/7379/tronlegacys7i7wsjf.jpg

这是行不通的。甚至不工作的模拟器。

It doesn't work. Doesn't even work in emulator.

难道是为图像EXIF信息是有问题的?任何人都可以尝试,看看他们是能够显示在Android上的应用程序,图像,并分享了code /方法来显示图像在屏幕上?

Could it be the EXIF info for the image is problematic? Can anyone try to see they are able to display that image on android app, and share the code/method to display that image on screen?

感谢您!

推荐答案

您将有一个web视图没有问题displayin的形象

You will have no problems displayin that image in a webview

WebView myWebView = (WebView) findViewById(R.id.webview);                   
myWebView.loadUrl("http://img191.imageshack.us/img191/7379/tronlegacys7i7wsjf.jpg");

在哪里显示你的形象?

where are your image being displayed?

这篇关于的Andr​​oid如何显示和URL图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆