i want to write an AccessibilityService
which should help the user to fill forms. I saw the possibility to call Javascript code via WebView.loadUrl()
. But since i've just the AccessibilityNodeInfo
i only see that the WebView
is on the screen.
After some research, i saw that TalkBackService is able to inject Javascript, and in a different post (Alternative way for communication between WebView and native) i saw its possible if i have a reference to the WebView
-object.
Is there a way to execute JavaScript via such an Message
or an Broadcast Intent in chromes WebView?
Would be really great if someone could help me! Thanks a lot!