【问题标题】:How to load image from a redirected url in android如何从android中的重定向url加载图像
【发布时间】:2012-01-07 17:31:49
【问题描述】:

我正在尝试在 ImageView 中加载图像。图片的 URL,当我在网络浏览器上点击它时,它会将我重定向到图片的另一个链接。

当我为 ImagView 使用相同的 URL 时,我收到 File Not Found Exception: URL 的错误

有什么方法可以让我从重定向的 url 加载图像。

更新

这是我点击的网址

http://graph.facebook.com/xxxxxxxxxxxx/picture/

作为响应,例如我从以下 URL 获取图像

http://profile.ak.fbcdn.net/static-ak/rsrc.php/v1/yo/r/UlIqmHJn-SK.gif

【问题讨论】:

标签: android image url redirect imageview


【解决方案1】:

我知道为时已晚,您可能已经想通了。在 android ImageView 中无法处理远程 URL,所以问题不是 url 重定向。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-22
    • 1970-01-01
    相关资源
    最近更新 更多