title: get and share page URL - webView android
body: <p>I want to <strong>get</strong> the URL of current page in my webView and <strong>share</strong> it. 
  Below are the codes for getting page URL and sharing the package name; I don't know how to use them together.</p>
  
  <p><strong>get page URL-</strong></p>
  
  <pre><code>String url = webView.getUrl();
      if (android.os.Build.VERSION.SDK_INT &lt; android.os.Build.VERSION_CODES.HONEYCOMB) {
          android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
          clipboard.setText(url);
      } else {
          android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
          android.content.ClipData clip = android.content.ClipData
                  .newPlainText("text label", url);
          clipboard.setPrimaryClip(clip);
      }
  </code></pre>
  
  <p><strong>share package name</strong></p>
  
  <pre><code>findViewById(R.id.exitdlg).setVisibility(View.GONE);
      Intent shareIntent = new Intent(Intent.ACTION_SEND);
      shareIntent.setType("text/plain");
      shareIntent.putExtra(Intent.EXTRA_TEXT,
              "http://play.google.com/store/apps/details?id="
                      + "com.air.blahblah");
      startActivity(Intent.createChooser(shareIntent, "Share..."));
  </code></pre>
  
  <p>I am new to android, any help will be highly appreciated.</p>