Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Have you provided a WebViewClient? Also, why not use the shouldInterceptRequest()-method, which sounds more like what you want. Commented Apr 12, 2012 at 9:51
  • @Lukas Knuth :Thanks yes I have provided webview client will check on shouldInterceptRequest() method Commented Apr 12, 2012 at 9:57
  • 1
    You can use shouldOverrideUrlLoading method and return true, get the URL will be loading, if it's in your black list, then load your own warning view Commented Apr 12, 2012 at 10:06
  • Thanks All : shouldInterceptRequest() method worked as well as shouldOverrideUrlLoading() I did some parsing on received urls from above methods and it worked. :) Commented Apr 12, 2012 at 10:09
  • @dreamtale : Can you please explain this statement "You can use shouldOverrideUrlLoading method and return true, get the URL will be loading" Commented Apr 12, 2012 at 11:05