Send keyboards event to Android webview

posted in: Android, Guides, Java | 0

In the process of integrating a Javascript game into a webview I needed to have buttons injection keybard events in the webview. The process is fairly simple and can be used on any type of view: webView.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT));   You can … Continued