new Thread () {
public void run () {
try {
Instrumentation inst=new Instrumentation();
inst.sendKeyDownUpSync(int 键码);
} catch(Exception e) {
Log.e("Exception when sendPointerSync", e.toString());
}
}
}.start();