Android WebView click open within WebView not a default browser

后端 未结 12 2041
迷失自我
迷失自我 2020-11-27 16:34

I did one sample application using WebView, in that web view the URL comes from web services. It\'s working fine, but if I click any link within that WebView, its automatica

12条回答
  •  旧时难觅i
    2020-11-27 17:25

    Try this one, that method is deprecated.

    public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
                return super.shouldOverrideUrlLoading(view, request);
            }
    

提交回复
热议问题