[英]Calling an activity from outside the application in android
I want to test all the activities of my application by calling outside from the application. 我想通过从应用程序外部调用来测试我的应用程序的所有活动。
Is it possible? 可能吗? Currently I can only call the main activity from adb.
目前,我只能从adb调用主要活动。 Is it possible to launch other activity?
是否可以发起其他活动?
One solution might be in the android manifest I declare all activities as main activity. 一种解决方案可能是在android清单中,我将所有活动都声明为主要活动。 Is it feasible?
可行吗
您可以从adb shell启动任何活动
adb shell am start -n package-name/activity-1-name
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.