Sunny
Sunny

Reputation: 1076

Android web view error

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

Answers (1)

kevinl
kevinl

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

Related Questions