android-emulatorandroid-tvnumpad

Emulate remote control number key presses on Android TV Emulator


Is there a way to emulate the remote's numpad key presses (i.e. KeyEvent.KEYCODE_NUMPAD) in the Android TV Emulator?


Solution

  • You can emulate all key presses using adb shell command input keyevent. For numpad you can use the command like this: adb shell input keyevent KEYCODE_NUMPAD_1