The codes you send through the driver are the raw events, before they have been translated to Android key codes, so it depends on your hardware. You'll want to look at the source code of whatever build you are using -- there will be a *.kl file somewhere mapping from the driver codes to android codes.
On Thu, Apr 16, 2009 at 8:54 AM, a druid <[email protected]> wrote: > > Hi searup. > > I have one more question. > As a newbie I have still the basic problem of locating the document > ation, that I need for some tasks. > > Which document(s) / url list(s) the possible devices / types / key- > codes key-values ? > > thanks a lot in advance. > > On Apr 16, 2:46 pm, swarup <[email protected]> wrote: > > 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 <[email protected]> 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 <[email protected]> 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 > > > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

