Opening new android activity with a webview shows a blank (white) screen instead of the html content

前端 未结 11 1488
野性不改
野性不改 2020-12-29 03:29

I have been researching for 2 days and I haven\'t found a similar problem anywhere on the internet!

From the main activity, I\'m trying to open a new activity contai

11条回答
  •  半阙折子戏
    2020-12-29 04:18

    You need to return true in shouldOverrideUrlLoading method

    public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }
    

提交回复
热议问题