I am trying to access the html file from assest , but it keeps saying webpage not available. when i use http://localhost/
it works but the data is not displaying properly. is there a way to get `file:///android_asset/.htm to work
http://localhost/yourfile.html
is the correct way to access an html file for the webviewer from the assets.
What do you mean by not displaying correctly when you load it this way ? Your html may not be setup to display correctly in a mobile browser ?
Do you see those symbols. i need to get rid of them
What happens if you use file:///android_asset/<original>.html
?
Those little black diamonds are usually the result of mismatched code pages.
Code pages are tables matching character codes to their visual representation.
Can you share the html file (rename it with a .txt
extension) ?
Someone can have a look at the text encoding...