开发者

Image with dynamic src loads in Android browser, but not in Webview

开发者 https://www.devze.com 2023-01-17 19:44 出处:网络
I am dynamically serving an image from my server, and attempting to display it in an img tag on an Android phone. This wor开发者_如何学Goks perfectly in the normal Android browser, but when I try it i

I am dynamically serving an image from my server, and attempting to display it in an img tag on an Android phone. This wor开发者_如何学Goks perfectly in the normal Android browser, but when I try it in my app's Webview I just get a question mark.

Running Android 2.1.1 on a Nexus One


Your application need access permission to the web.

<uses-permission android:name="android.permission.INTERNET" />

http://developer.android.com/reference/android/webkit/WebView.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号