device-api/src/main/java/com/github/cosysoft/device/android/impl/AbstractDevice.java
public void inputKeyevent(int value) {
    executeCommandQuietly(adbCommand("shell", "input", "keyevent", ""
        + value));
    // need to wait a beat for the UI to respond
    try {
      Thread.sleep(500);
    } catch (InterruptedException e) {
      log.warn("", e);
    }
  }
public void inputKeyevent(int value) {
    executeCommandQuietly(adbCommand("shell", "input", "keyevent", ""
        + value));
    // need to wait a beat for the UI to respond
    try {
      Thread.sleep(500);
    } catch (InterruptedException e) {
      log.warn("", e);
    }
  }
public void inputKeyevent ( int value ) { executeCommandQuietly ( adbCommand ( "shell" , "input" , "keyevent" , "" + value ) ) ; // need to wait a beat for the UI to respond try { Thread . sleep ( 500 ) ; } catch ( InterruptedException e ) { log . warn ( "" , e ) ; } }
Use adb to send a keyevent to the device. <p> Full list of keys available here:
http://developer.android.com/reference/android/view/KeyEvent.html

@param value - Key to be sent to 'adb shell input keyevent'
Use adb to send a keyevent to the device . <p > Full list of keys available here : http : // developer . android . com / reference / android / view / KeyEvent . html