title: How to get URL from long click links in a webview?
body: <p>I want to Create a Context Menu for web view in android. My problem is that I cant get the URL from the clicked link. I write this code for log the clicked link:</p>
  
  <pre><code>webView.setOnLongClickListener(new View.OnLongClickListener() {
          @Override
          public boolean onLongClick(final View v) {
  
              WebView webView1 = (WebView) v;
              WebView.HitTestResult hitTestResult = webView1.getHitTestResult();
              Log.i("LinkClicked", hitTestResult.getExtra());
  
              return false;
          }
      });
  </code></pre>
  
  <p>With this code, when long click on links in websites like <em>stackoverflow</em>, log like this:</p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions">https://stackoverflow.com/questions</a></p>
  </blockquote>
  
  <p>everything is ok, but when long click on google search results, log like this:</p>
  
  <blockquote>
    <p>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAJFBMVEVHcEz/AAD/AAD/AAD/AAD/AAD/AAD/AAD/g4P/////KCj/7e0I8rGvAAAAB3RSTlMAT0g5Ggp+EilkVQAAAENJREFUGJVjYCAGsDAzggEzC5jLxo4E2BgYWNlRACsDM5jmggkwMzCBaQ5uqBATTICTk4OAAEILhqEY1mI4DNPphAAASIsES4gsgWgAAAAASUVORK5CYII=</p>
  </blockquote>
  
  <p>it does not return a link. How I can fix this?</p>