I want to copy selected text in android WebView, I tried many methods to do this but nothing done. like :
 android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
   KeyEvent shiftPressEvent = new KeyEvent(0, 0,
               KeyEvent.ACTION_DOWN,
               KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
            shiftPressEvent.dispatch(webview);
            if(clipboard!=null)
            {
              String text = clipboard.getText().toString();
              Toast.makeText(this, "select_text_now     "+text, Toast.LENGTH_LONG).show();
            }
Many Thanks;
 
     
    