remote using java and android (iot)


import java.awt.Robot;
public class RemoteData {
private Robot r;
public RemoteData() {
try{
    r=new Robot();
}catch (Exception e) {
System.out.println(e);
}
}
public void move(int k){
r.keyPress(k);
r.keyRelease(k);
}
}


No comments: