和startActivity 及 startService类似

在activity中 启动Instrumentation  以便调用运行测试项目 ActivityInstrumentationTestCase2

可以尝试如下代码实现

startInstrumentation(new ComponentName("com.example.test", "android.test.InstrumentationTestRunner"), null, null);

相关文章:

  • 2021-03-25
  • 2021-12-06
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-10-16
  • 2021-10-24
猜你喜欢
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-04-15
  • 2022-12-23
  • 2022-01-22
  • 2022-01-23
相关资源
相似解决方案