hi, Im using Android SDK 1.0 can you help me in how to catch key press events in my application. I want to simulate Up,Down scroll key presses in my application.
Regards, On Sep 22, 3:54 am, Tigers <[EMAIL PROTECTED]> wrote: > How do I simulate a keyevent in the home screen? > I can simulate a keyevent with "windowManager.injectKeyEvent" in my > application, but after I send the KEYCODE_HOME(Go to Home Screen), the > other simulate keyevent can't be sent. > The log is as below, please help me, Thanks. > > 09-22 08:34:13.911: WARN/WindowManager(51): Permission denied: > injecting key event from pid 301 uid 10016 to window Window{434b0248 > com.android.launcher/com.android.launcher.Launcher} owned by uid 10003 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---