我怎样才能中止android uiautomator正在运行自动化脚本? 到目前为止我发现的唯一方法是直接使用 ADB shell 终止“uiautomator”进程。 还有其他办法吗?
最佳答案
对于 Runtime.getRuntime()
的情况,您可以尝试以下解决方法:
Process process=Runtime.getRuntime().exec(cmd);
process.destroy();
关于android - 如何中止uiautomator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29143766/