public String htmlFromArrayList(ArrayList a) {
StringBuilder returnStringBuilder = new StringBuilder();
for (TSI i : a) {
returnStringBuilder.append("
");
returnStringBuilder.append(i.itemTitle);
returnStringBuilder.append("
");
returnStringBuilder.append(i.itemText);
returnStringBuilder.append("
");}
return returnStringBuilder.toString();
}
要当我打开TSI加载我用
mWebView.loadData(htmlFromArrayList(mSummaryItemArrayList), "text/html", null);
现在这个工程的约60%至我ArrayList的70%,但换了别人我得到一个错误的字符串:
The web page at data:text/html;null,%3Cp%E.......p%3E might be temporarily down or it may have moved...
我认为这与字符集中的奇怪字符有关。错误信息是什么意思?
+0
见http://stackoverflow.com/a/20356555/236743 –
2013-12-03 16:34:35