Android: Programatically trigger text selection mode in a WebView on Jelly Bean
问题 I need to programatically trigger text selection mode in a WebView, but the code I have used does not work on Jelly Bean? I have been using the following code but it no longer works on Android 4.1 (Jelly Bean) because WebView.selectText, emulateShiftHeld, and the key dispatch are no longer supported on Jelly Bean. Following code that works on all versions up to ICS is based on: How to enable the default highlight menus in android webview? public void selectAndCopyText() { try { // ICS WebView