开发者

How do I run shell script from Android application

开发者 https://www.devze.com 2023-04-02 18:44 出处:网络
I know that I can run an Android instrumentation using abd shell. But I want to run the instrumentation from another Android app.

I know that I can run an Android instrumentation using abd shell. But I want to run the instrumentation from another Android app.

Basically, I want to create an Android app that tests another Android app using ins开发者_如何学编程trumentation.

Please let me know if there is a better way to create an Android app that can access to the another Android app to run some test codes..

Thanks in advance..


You can run instrumentation from code using startInstrumentation(), like this

startInstrumentation(componentName, null, null);
0

精彩评论

暂无评论...
验证码 换一张
取 消