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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -