I am having some trouble getting the selection from a WebView in Android.
I can get the WebView to go into selection mode. I can even get it to copy the text to the
Finally, in Android 4.4 KitKat, the WebView is now based on Chromium.
Therefore we have access to window.getSelection()!!
window.getSelection()
wv.evaluateJavascript("console.log(window.getSelection().baseNode.nodeValue);", null);
Tested on Nexus 5 & Nexus 7.