yu.hj wrote:
> I want to display a image in with WebView ,in m5  it can display a image
> 
> WebView wv;
>     wv = (WebView) findViewById(R.id.wv1);
>     wv.loadData("<img src=\"file:///android_asset/p1.jpg\">", mimeType,
> encoding);
> but in sdk 0.9 it can't display the image!

You cannot load files into the WebView from the local filesystem, for 
security reasons, starting in the 0.9 SDK.

If all you want to do is display an image, I recommend just using the 
ImageView widget.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.1 Published!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to