I have problem with use of loadDataWithBaseURL function. In sdk above 19 all works fine, but in KitKat i occur a problem.
mReceiptWebView.addJavascriptInterface(
getInstance().new RenderHTMLReceiptTask(mContext, mPrint),
"Android");
mReceiptWebView.loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);
In html I use body onload event to fire javascript interface callback.
0 comments:
Post a Comment