海王  

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

posted on 2011-10-13 10:10  海王  阅读(4921)  评论(0编辑  收藏  举报