开发者

How do I run shell script from Android application

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜