if (verbose > 0) {
System.out.println(":Sending Flip keyboardOpen=" + mKeyboardOpen);
}
// inject flip event
try {
FileOutputStream f = new FileOutputStream("/dev/input/event0");
f.write(mKeyboardOpen ? FLIP_0 : FLIP_1);
f.close();
return MonkeyEvent.INJECT_SUCCESS;
} catch (IOException e) {
System.out.println("Got IOException performing flip" + e);
return MonkeyEvent.INJECT_FAIL;
}