문제

Is there a way to inject keystrokes into the JVM on the Android platform?

I'm looking for something like java.awt.Robot but I don't think that's available on Android

thanks

도움이 되었습니까?

해결책 3

Well I'm actually working on a Synergy port to the android (synergy-foss.org) and I think the best (and only method) for faking out keystrokes on the device itself is to write to /dev/input/uinput. However it seems this is only available with Cyanogen mod

다른 팁

You can use:

$ adb -s <serialno> emu event send <event>

where the event description can be something like:

"EV_KEY:KEY_A:1"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top