Question

I have a same problem like

this

Problem gets solved with loadData()

But it doesnt works with loadDataWithBaseURL()

v.loadDataWithBaseURL("file:///android_asset/index/",htmlDocument, "text/HTML", "UTF-8",null);

Please help..

Was it helpful?

Solution

OK i got it...

its simple we just need to change HTML to html i.e.(Capital to small letters)

OTHER TIPS

Try something like this:

webView.loadDataWithBaseURL(null, "<body><font size='+2'>My text</font></body>", "text/html", "utf-8", null);

You can simply use

mWebView.loadUrl("file:///android_asset/privacy.html");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top