WebView is not loading webpage

后端 未结 3 1826
醉酒成梦
醉酒成梦 2021-02-19 03:31

I am using WebView for loading a website. But it is very slow and is leaking when specific websites are loaded. I am loading WebView with the followin

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 03:55

    Try this from where you loads webview

       web.setWebViewClient(new WebViewClient() {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                return super.shouldOverrideUrlLoading(view, url);
            }
        });
    

提交回复
热议问题