[android-developers] Re: User selectable text in WebView

2010-09-07 Thread Dan Watling
FWIW, I was able to obtain the clipboard text by extending the WebView class, adding my own invalidate method, and a callback. The end result was something like this: public MyWebView(Context ctx, AttributeSet attrs) { super(ctx, attrs); mClipboard = (ClipboardManager)

[android-developers] Re: User selectable text in WebView

2010-08-12 Thread Sarwar Erfan
Use the ClipboardManager to get/set/manipulate the content in the clipboard. http://developer.android.com/reference/android/text/ClipboardManager.html Regards Sarwar Erfan On Aug 12, 12:13 pm, Ryan Tan ryantan...@gmail.com wrote: Hi, I am using a WebView to display some text. I want to allow

[android-developers] Re: User selectable text in WebView

2010-08-12 Thread Ryan Tan
Dear Sarwar, Thanks for your reply. The problem I have is I don't know when the text is selected and copied into the clipboard after firing the KeyEvent. Thanks. On Aug 12, 4:12 pm, Sarwar Erfan erfanonl...@gmail.com wrote: Use the ClipboardManager to get/set/manipulate the content in the