Back to project page Android-NFC-WiFi-Controller.
The source code is released under:
MIT License
If you think the Android project Android-NFC-WiFi-Controller listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package sanchezsobrino.multimedia.anwc.business; //www .j a va 2 s . c o m import java.awt.AWTException; import java.awt.Robot; public class KeySimulator { private Robot robot; public KeySimulator() throws AWTException { this.robot = new Robot(); } public void simulateKeyPress(int key) { robot.keyPress(key); robot.keyRelease(key); } }