From: Kent Yip <yes...@gmail.com>
Date: Tue, 21 Apr 2009 13:02:11 -0700
Local: Tues, Apr 21 2009 4:02 pm
Subject: Re: [android-beginners] Re: Having a lot of problems finding the documentation (e.g. about sendevent)
thank swarup for the insight
i was able to look at the events from emulator, the keycode i different than
all i can say is keycode for emulator and real device maybe different.
and i am using SDK version: android-sdk-windows-1.1_r1
here is how to use: sendevent
command format: sendevent device type code value
[command] [device] [type] [code] [value]
/dev/input/event0 is the device to send it to
[type] 1 is unknow for me ( maybe code for physical button on device )
[code] 229 is the MENU button of the emulator
[value] 1 is keydown or press down ( for keyup or up use 0 )
i wrote a batch file for sending the event to the device like below:
adb -s emulator-5554 shell sendevent /dev/input/event0 1 229 1
have to use the follow command to simulate a pressing of button ( aka
Key Name CODE
now keyboard shown on the emulator
Key Name CODE
> 1) study the output of 'adb shell getevent', get high level idea of
> P.S.: if you do not know the source code locations, then follow the
> [platform/system/core.git] /toolbox/sendevent.c
> On Apr 20, 4:33 pm, a druid <klausf...@gmail.com> wrote:
> > Thanks for your answer.
> > What I wanted to do is to programatically (via adb shell, or via a
> > The simple first example, that I'd like to try is:
> > I did not find any pointers explaining how to do this:
> > There seems to be a adb-shell command named 'sendevent', but I found
> > On Apr 17, 7:08 pm, Kent Yip <yes...@gmail.com> wrote:
> > > Perhaps this link will get your started,
> > > This link as wellhttp://
> > > On Fri, Apr 17, 2009 at 8:53 AM, a druid <klausf...@gmail.com> wrote:
> > > > Hi,
> > > > Is it just me or is it really difficult to get information
> > > > Currently I wanted to understand, what exactly can be done with the
> > > > I even fail performing a very simple test, which is to press a key in
> > > > For debugging and ome other purposes I would like to press keys and
> > > > Somehow I am very unfortunate locating the adequate documentation.
> > > > Thanks in advance for a good place to start
> > On Apr 17, 7:08 pm, Kent Yip <yes...@gmail.com> wrote:
> > > Perhaps this link will get your started,
> > > This link as wellhttp://
> > > On Fri, Apr 17, 2009 at 8:53 AM, a druid <klausf...@gmail.com> wrote:
> > > > Hi,
> > > > Is it just me or is it really difficult to get information
> > > > Currently I wanted to understand, what exactly can be done with the
> > > > I even fail performing a very simple test, which is to press a key in
> > > > For debugging and ome other purposes I would like to press keys and
> > > > Somehow I am very unfortunate locating the adequate documentation.
> > > > Thanks in advance for a good place to start
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||