You can use ACTION_SET_TEXT for> = android 21. Here is an example of this:
AccessibilityNodeInfo source = event.getSource(); if (source != null & event.getClassName().equals("android.widget.EditText")) { Bundle arguments = new Bundle(); arguments.putCharSequence(AccessibilityNodeInfo .ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, "android"); source.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments); }
Anton Kashpor
source share