title: Unable to get current URL on click event of WebView in Android
body: <pre><code>    private WebView wv;
      public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.infoweblinkview);
  
      wv=(WebView) findViewById(R.id.weblinkview);
      wv.setWebViewClient(new WebViewClient());
      wv.getSettings().setJavaScriptEnabled(true);
      wv.loadUrl(getString(R.string.infourl));
  
  
   wv.setOnClickListener(new OnClickListener() {
  
                  @Override
                  public void onClick(View v) {
                      // TODO Auto-generated method stub
                      String  previousUrl = wv.getUrl();
                  }
              });
  
  }
  </code></pre>