Hi,

This question is first asked in
stackoverflow<http://stackoverflow.com/questions/6648177/how-to-handle-the-paste-event-in-android-3-0honeycomb>,
but still got no helpful answer. Then I realize maybe this is an advanced
question, I should post it here.

I have a customized EditText, which need to do customized "paste".

I overrode onTextContextMenuItem(int id) to handle "paste" requested by
selecting context menu.

@Override
public boolean onTextContextMenuItem(int id) {
  switch(id){
  case android.R.id.paste:
    doMyPaste();
    return true;
  }
}

This works in Android before 3.0.
In 3.0, however, there is a small "paste" widget near the cursor widget if
it's long-pressed, or the cursor is tapped.
[image: enter image description here]
When user do "paste" from this widget, the onTextContextMenuItem(int id) won't
be invoked. As a result, I can't do the customized paste.
Do any one knows what that small "paste" widget is? Which method should I
override to do a my own "paste"?

Thank you!

-- 
Best Regards,
Ben Lee

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to