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,
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,