Reputation: 1076
I know its been asked several times. I got the error "Should not happen: no rect-based-test nodes found" when loading the url onto web view .I searched many time and i saw the link given below. Android WebView JellyBean -> Should not happen: no rect-based-test nodes found . But i can't understand the solution they provided. plz help me.
try
{
wv[tmpm].getSettings().setJavaScriptEnabled(true);
wv[tmpm].setWebViewClient(new Myweb());
//wv[tmpm].setWebViewClient(new Myweb);
//wv[tmpm].loadUrl(url);
}
Myweb class given below
private class Myweb extends WebViewClient
{
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Log.d("In extends webview client","HIiiiiiiiiiiiiiii");
view.loadUrl(url);
return false;};
}
}
Upvotes: 3
Views: 1303
Reputation: 4214
try adding @Override above your boolean method in Myweb
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Log.d("In extends webview client","HIiiiiiiiiiiiiiii");
view.loadUrl(url);
return false;};
}
Upvotes: 1