I am using android 4.x .As I select the data from webview , there comes a option menu "copy" to copy the data on clipboard. i wanna create own button .as i click on that button it will copy the text on clipboard. i am able to copy selected text from webview to clipboard till 2.3 version. but it's not happening in android 3.0 or above.
It's measure problem.i have waste more time for it.Plz help me
My code is
public void SelectText(){
try{
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
shiftPressEvent.dispatch(mainWebView);
}catch(Exception e){
throw new AssertionError(e);
}
}