title: Can I use shouldInterceptRequest to block a particular call in Android?
body: <p>I used the following code</p>
  
  <pre><code>public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
      alertsavedinternal(); //display an alert
      Log.d("DEBUG", "Should intercept request" +url); 
      //log the url to console in debug mode.
      return null;
  }
  </code></pre>
  
  <p>However, while the alert is displayed my console also prints the log, besides which the url is also loaded in the background. How can I stop the url from loading?</p>
  
  <p>Please correct my understanding of this function.</p>
  
  <p>Thanks</p>