0

I am trying to navigate to a URL in a browser through the AccessibilityService. I am able to find the URL bar and enter a URL into the EditText, but I can't find a way to press enter to actually go there. There are also no elements on screen for "go" or "enter" other than the suggestions that pop up, but depending on the browser those nodes aren't always clickable.

Is it possible to send a keyboard "enter" key event from an AccessibilityService?

Flyview
  • 1,780
  • 1
  • 25
  • 45
  • Does this answer your question ? https://stackoverflow.com/a/41986130/10831763 – Yakir Malka Jul 03 '20 at 21:58
  • @YakirMalka Unfortunately I don't think so because I don't have an instance of the view, I just have an accessibility node info of the edit text. – Flyview Jul 04 '20 at 04:45

1 Answers1

4

Android R/11 adds this action. It isn't possible on earlier versions. https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_IME_ENTER

Phil Weaver
  • 608
  • 3
  • 7