Hi everybody,
i'm developing an AccessibilityService for android, which helps the user to fill forms with saved data in an separate app. In addition to Forms in Activities, i want to fill web forms in an open browser.
After some research i found 2 possibilities, but i for thous one need a reference to the WebView which i don't have, since i just got the AccessibilityNodeInfo received by the AccessibilityService.
The 2 possibilities would be:
- WebViewInstance.loadUrl() and
- use sendMessage-Methode via reflection-API [1]
Additionally i saw, that one could inject code via AccessibilityNodeInfoInstance.performAction() Methode. Unfortunately, its just possible to communicate with chromevox.
Is there another way, to execute javascript code on the currently open Tab? Is it possible to use c2dm-broadcasts to execute javascript?
Thanks in advance, (and sorry for the double post)
best regards
Leo