Reputation: 83
I'm working on Genymotion android emulator and I was looking at how to interact with it. I read that the events and Linux exposes a uniform input event interface for each device as /dev/input/eventX.
can that be done with an android emulator?? I mean is it possible for example to use java implementation to send mouse events to the emulator and inject to the /dev/input/eventX so that for example instead of touching we can use a button on the java application to interact with 2048 game and move up and down ??
hope it's a clear question :)
thanks :)
Upvotes: 1
Views: 4338
Reputation: 7116
There are a lot of ways to interact with an Android emulator:
getevent
and sendevent
commands. It can be a little bit laborious but you can read this very clear post to learn more.adb shell input
command where the "man output" is quite self-explanatory. It allows you to inject defined input like touchscreen, text input, etc.Upvotes: 4