What I want to achieve: I have a webView in Activity A.I want to get the url and redirect to next Activity (Activity B) when link from webView in Activity A is pressed.Below is my code and shouldOverrideUrlLoading is not called when I press link in webView from Activity A.
context
答案 0 :(得分:0)
您可以覆盖public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request)
方法