开发者社区 问答 正文

执行cmd命令启动模拟器

在eclipse中运行代码:
Process process = Runtime.getRuntime().exec("cmd /c emulator -avd OrangeAutoTest");
我应用就会暂停,我还关不了cmd窗口。

展开
收起
蛮大人123 2016-02-18 17:17:05 2931 分享 版权
1 条回答
写回答
取消 提交回答
  • 我说我不帅他们就打我,还说我虚伪

    Runtime.getRuntime().exec("cmd /c start cmd.exe /K emulator -avd OrangeAutoTest");

    2019-07-17 18:44:12
    赞同 展开评论
问答分类:
问答地址: