Getting selected text in a WebView via a contextual action bar
问题 It's known to be difficult to get selected text in a WebView because WebView text selection is actually handled by a private class, WebTextView. However, with the recently released Android 4.0 Design guidelines, there seems to be a glimmer of hope of achieving this through contextual action bars (CABs). It says: Use CABs whenever you allow the user to select data via long press. You can control the action content of a CAB in order to insert the actions you would like the user to be able to