title: Android: how to select texts from webview
body: <p>i want allow  user to select some texts from webview and it need to be send as a text message. pls find way to select text and copy to clipboard and extracting from clipboard. i saw many example but nothing helped me really...TIA  </p>
  
  <p>Edit<br>
  using the code provided in the link from <strong>@orangmoney52</strong>. with following changes</p>
  
  <p>getmethod's second parameter and invoke method second parameter. if i give null there warning will come.. which one is correct?</p>
  
  <pre><code> public void selectAndCopyText() {
       try {
           Method m = WebView.class.getMethod("emulateShiftHeld", Boolean.TYPE); 
              m.invoke(BookView.mWebView, false); 
          } catch (Exception e) {
              e.printStackTrace();
              // fallback
              KeyEvent shiftPressEvent = new KeyEvent(0,0,
                   KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_SHIFT_LEFT,0,0);
              shiftPressEvent.dispatch(this);
          }
  
  }
  </code></pre>
  
  <p>Getting this error:  </p>
  
  <pre><code> 05-26 16:41:01.121: WARN/System.err(1096): java.lang.NoSuchMethodException: emulateShiftHeld  
  </code></pre>