在我的应用程序中,我在webview中显示一些Html内容:
String webViewConent = 'this is some
但是,在上次应用更新后,与其他一些事情有关,对于某些用户来说,webview无法正常工作.他们只看到span标签之前的字符串.该问题与任何特定的Android版本无关.
最佳答案
同样的问题,我发现base64编码作为一个快速修复:
String base64 = android.util.Base64.encodeToString(html.getBytes("UTF-8"),android.util.Base64.DEFAULT);
mWebView.loadData(base64,"base64");