[android-developers] Re: Generate keypress when moving phone

2011-12-15 Thread Charly Pierre
(KeyEvent.VK_ENTER);// example with ENTER on computer robot.delay(Delay); } but Robot class doesn't exist for android... Have u ideas (other than Debug your app.) ? Thx On 13 déc, 00:38, TreKing treking...@gmail.com wrote: On Mon, Dec 12, 2011 at 4:01 PM, Charly Pierre charlypierr

[android-developers] Generate keypress when moving phone

2011-12-12 Thread Charly Pierre
Hello all, I want to generate a presskey when i move my phone. i try with that but it doesn't work = crash x = values[SensorManager.DATA_X] * 9; if (x =45 ) { SimulationKey.PressTheKeyRIGHT(); } // in Simulation class public static void pressTheKeyRIGHT() { Instrumentation i = new