title: Get clicked url in web view in Android
body: <p>I need to get a url when user press somethings in a webview.
  I use this code:</p>
  
  <pre><code>webView = (WebView) rootView.findViewById(R.id.webView);
      WebSettings webSettings = webView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      webView.loadUrl("my url");
      webView.setWebViewClient(new MyWebClient());
  </code></pre>
  
  <p>MyWebClien</p>
  
  <pre><code> private class MyWebClient extends WebViewClient {
      @Override
      public boolean shouldOverrideUrlLoading(WebView view, String url) {
          Log.e("URL", url);
          return true;
      }
  }
  </code></pre>
  
  <p>But, if i click something, the event is never called.
  Thank you</p>