Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question