Skip to content Skip to sidebar Skip to footer

How To Simulate Key Press In Android With Accessibilityservice

I am writing an accessibility service. I've been trying to do some auto search on an app. I uses the accessibilityservice action_paste to fill in the EditText. Then I need to simul

Solution 1:

You could try Activity.dispatchKeyEvent(KeyEvent) There are also functions in Instrumentation But those are mostly for testing.


Post a Comment for "How To Simulate Key Press In Android With Accessibilityservice"