user1340068 user1340068 - 4 months ago 46
Android Question

Are there ways to get android app view hierarchy from another android app?

I'm researching ways to do android automation running on the device, without any workstation connection.

My approach is like this, i modified monkey's source, and is able to start 3rd party app (which i don't have the source access), I can send the keystrokes to the app too. But now I'm facing another problem, i need access properties of some ui elements, for e.g. get button's text for verification purpose.

How can i get the system's (or top activity's) hierarchy from my app?


No, there is no way to accomplish this.