http://qatesttech.wordpress.com/2012/06/20/adb-shell-sendevent-sending-touch-like-events/
On Friday, April 17, 2009 4:23:45 PM UTC+5:30, klausfpga wrote:
Hi Dianna,--
Thanks for your reply.
In fact my problems are in fact even more basic.
The command 'sendevent'
requires following parameters
device
type
code
value
How do I have to specify all these parameters.
Let's take for example the emulator and let's assume I'd like to press
the 'down' key
My questions are:
device: is this the device string, that I can find with "cat /proc/bus/
input/devices"
type: what is this?
code: what is this?
value: I assume this is what I could find in the *.kl files, that you
mentioed.
In order to bother you and the forums less with this kind of questions
I would be glad to be pointed to the adequate documentation explaining
how sendevent is working and what
the parameters of sendevent mean.
thanks in advance
K
On Apr 16, 6:34 pm, Dianne Hackborn <hack...@android.com> wrote:
> 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 <klausf...@gmail.com> 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 <me.s...@gmail.com> 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 <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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment