CopyPastor

Detecting plagiarism made easy.

Score: 0.9183431933416384; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2017-08-25
by Adil Saiyad

Original Post

Original - Posted on 2017-06-22
by Muneeswari S



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Create a WebViewClient, and override the shouldOverrideUrlLoading method.
webview.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url){ // do your handling codes here, which url is the requested url // probably you need to open that url rather than redirect: view.loadUrl(url); return false; // then it is not handled by default action } });
Create a WebViewClient, and override the [shouldOverrideUrlLoading][1] method.
webview.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url){ // do your handling codes here, which url is the requested url // probably you need to open that url rather than redirect: view.loadUrl(url); return false; // then it is not handled by default action } });
[1]: https://developer.android.com/reference/android/webkit/WebViewClient.html#shouldOverrideUrlLoading%28android.webkit.WebView,%20java.lang.String%29

        
Present in both answers; Present only in the new answer; Present only in the old answer;