R
R
rosstik92017-02-11 01:20:51
Android
rosstik9, 2017-02-11 01:20:51

Android. How to remove selected text from WebView into a variable?

We need a method that will return the selected text to the webview, everything seemed simple, but no.
There is a possibility of such manipulation with TextView i EditText. Your suggestions, gentlemen, what can be done here? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2017-02-11
@Rou1997

My suggestion is through JavaScript, in fact, JavaScript has a good interface window.selection, it remains to contact the created one in the necessary events JavascriptInterface, which will process this and use the value as required, but look better, I think that there is a more convenient option, directly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question