> I want the user to be able to select text from the screen..much like > we do when we copy paste from one document to another. Is there an > easy way to do this? I need to know the exact string selected by the > user.
hasSelection() will tell you if text is selected. getSelectionStart() and getSelectionEnd() will tell you the offsets into the text of the start and end of the selection/cursor (or -1 if there is no selection/cursor). In theory, you can use this, along with the text in the editor, to get the selected text. I haven't tried this, so there may be issues, but it's where I'd start. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ -- Available Now! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---