是否有办法从其他Android应用程序获取Android应用视图层次? [英] Are there ways to get android app view hierarchy from another android app?
问题描述
我研究的方法可以做到在设备上运行Android自动化,无需任何工作站连接。
I'm researching ways to do android automation running on the device, without any workstation connection.
我的做法是这样的,我修改了猴子的来源,是否能够启动第三方应用程序(我没有源接入),我可以发送击键到应用程序了。但是现在我面临的另一个问题是,我需要一些UI元素的访问属性,例如为获得按钮的核查目的文本。
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.
这篇关于是否有办法从其他Android应用程序获取Android应用视图层次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!