How do I get data from an external application?

188 Views Asked by At

I want to get data from another application. I used AccessibiliyService, but AccessibiliyNodeInfo does not contain the information I need. I want to get drawableLeft property from TextView. Maybe anybody know, how it to do. I have root device.

Is it possible to get an element by id? Or is there a way without using AccessibilityService?

1

There are 1 best solutions below

2
MobA11y On

You can't get that information utilizing accessibility service APIs. It's not available.

Accessiblity services do NOT actually connect to the App that is running, they connect to a textual representation of the app. You can find the AccessibilityNodeInfo of an element by ID, but you don't actually end up with access to the underlying View object. Just it's Assistive Technology representation.