我正在网页视图中显示一个网页。我在运行时向webview添加了更多内容,如下所示
webContent=//first html page as string content
`mWebView.loadDataWithBaseURL("",webContent, "text/html", "UTF-8","" );` `// some code` `webContent=//second html string as string content mWebView.loadDataWithBaseURL("file:///sdcard/",webContent, "text/html", "UTF-8","" );` 但是我得到了
03-31 13:26:45.448: INFO/System.out(462):java.lang.NullPointerException
有索恩酒吗?
发布于 2011-03-31 16:13:09
您的基本url (loadDataWithBaseURL()的第一个参数)不应为空。
https://stackoverflow.com/questions/5496843
复制相似问题