try $ adb shell sendevent <device> <type> <key-code> <value-press> ; adb shell sleep 1 #seconds; adb shell sendevent <device> <type> <key-code> <value-release>
above is for 1 second long press On Apr 14, 11:46 pm, Dan Raaka <danra...@gmail.com> wrote: > I am using this a work-around for the non-working home key in the 1.0 > or 1.1 emulator. > If there is fix for it. That would work for me as well. > > On Apr 14, 11:23 am, Dan Raaka <danra...@gmail.com> wrote: > > > Is there a keycode to inject long home key press into a device via adb > > like below ? > > > $ adb shell input keyevent 7 # for key '0' > > > -Dan --~--~---------~--~----~------------~-------~--~----~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---