i am displaying a webpage in the webview . im adding some more content to webview at run time as follows
webContent=//first html page as string content
mWebView.loadDataWithBaseURL("",webContent, "text/html", "UTF-8","" );
// some code
webContent=//second html string as string content
mWebView.开发者_如何学PythonloadDataWithBaseURL("file:///sdcard/",webContent, "text/html", "UTF-8","" );
but im getting
03-31 13:26:45.448: INFO/System.out(462): java.lang.NullPointerException any soln?Your base url (first parameter to loadDataWithBaseURL()) should not be empty.
精彩评论