public void inputKeyevent(int value){
  executeCommandQuietly(adbCommand("shell","input","keyevent","" + value));
  try {
    Thread.sleep(500);
  }
 catch (  InterruptedException e) {
    log.warn("",e);
  }
}

public void inputKeyevent ( int value ) { executeCommandQuietly ( adbCommand ( "shell" , "input" , "keyevent" , "" + value ) ) ; 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
