How can I get selected data from textview, when range is provided.
Asked
Active
Viewed 156 times
0
-
1Have you tried anything in particular? – Richard Horrocks Oct 29 '13 at 13:40
-
Check this: http://stackoverflow.com/questions/12346604/android-how-can-i-show-text-selection-on-textview – Sarwar Erfan Oct 29 '13 at 13:45
-
To confirm: have you already selected the text, as above (and using android:textIsSelectable), and now you want to know what to do with it? – Richard Horrocks Oct 29 '13 at 13:48
-
@RichardHorrocks yes I have already tried some methods .... – user2932321 Oct 29 '13 at 13:54
-
@RichardHorrocks .... Yes, my textview is selectable (in activities xml) – user2932321 Oct 29 '13 at 13:54
-
@RichardHorrocks ..... now I want to get the selected data from the text view ..... – user2932321 Oct 29 '13 at 13:55
-
@SarwarErfan .... not working .... – user2932321 Oct 29 '13 at 14:14
-
You might be able to use the ClipboardManager, as per one of the answers in this thread: http://stackoverflow.com/questions/6025818/select-copy-text-in-a-textview – Richard Horrocks Oct 29 '13 at 15:10
1 Answers
0
Following up on one of my comments...
One of the answers in this thread suggests that the ClipboardManager may be the way to solve this.

Community
- 1
- 1

Richard Horrocks
- 419
- 3
- 19