Passing XHTML mimeType to Android WebView -
i need load local xhtml file .html extension correct mimetype "application/xhtml+xml" in android webview control. being webview has load javascript interface have call
webview.loaddata("","text/html",null)
first, , call
webview.loadurl(localurlstring)
i have pass right mimetype because of wrong behaviour of js functions when self-closing tags encountered but
webview.loaddata("", "application/xhtml+xml", null);
just causes webview display error message: "this xml file not appear have style associated it. document tree shown below".
how can achieve goal?
Comments
Post a Comment