sagar wrote:
> Hello,
> I have following code to display webview's background.
>
> wv.loadData("<html><body background=\"file:///android_asset/lbh.png
> \">"+data[0],"text/html","utf-8");
>
> here the data[0] contains the data to be displayed...
>
> Data is displayed fine..
> but background is not displayed.
>
> I can only use this method..i dont knw why i can t access android
> assets..
> I have placed that image in assets folder already..
Try loadDataWithBaseUrl() instead of loadData(), supplying some bogus
value for the base URL (e.g., fake://why/o/why/is/this/needed).
--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---