WebView problem with Android 3.1

nad

Active Member
Licensed User
Longtime User
Hello,

From the webview description

"...
LoadHtml (Html As String)
Loads the given Html page
Example:
WebView1.LoadHtml("<html><body>Hello world!</body></html>")
You can use "file:///android_asset" to access files added with the file manager:
WebView1.LoadHtml("<html><body><img src='file:///android_asset/someimage.jpg'/></body></html>")
Note that files added with the file manager should be accessed with a lower cased name.
..."

I have the following problem. Using Android 3.1 when i try to load someimage.jpg on acer iconia a500 or in motorola xoom i only get a square with a question mark inside. I think i have read a comment from Agraham somewhere else saying that under this version 3.1 there was not a clear route where files are stored for all manufacturers so i am wondering if file:///android_asset/someimage.jpg is failing for some of them for that reason.

So if i do something like the following

uri="<html><body><img src='file:///android_asset/"& Direccion.ToLowerCase & "'/></body></html>"
webTitle = Nombres.Get(upos)
StartActivity("webview")

it will only work for some Android 3.1 devices. What can i do to fix this?

Thanks and regards,
 

nad

Active Member
Licensed User
Longtime User
Tx Erel for your reply. I will continue testing, there might be another issue i have not noticed.
 
Upvote 0
Top