不自动启动应用程序,当我运行Android的直通工作室

不自动启动应用程序,当我运行Android的直通工作室

问题描述:

我右键单击我的项目 - >运行 - >所有测试

I right click my project-> Run -> All Tests

及其构建,并在我的设备安装。

Its Building and Installing in my Devices.

但在Eclipse中的应用程序不会自动启动等。

But app is not automatically launching like in eclipse.

好像我在终端安装了直通 ADB安装。需要我安装每次手动打开。

It seems like I installed thru adb install in terminal. Need to manually open each time I installed.

这是因为你正在运行它作为一个测试,而不是作为一个Android应用程序。

It is because you are running it as a 'test' and not as an 'Android Application'.

打开编辑配置窗格中,点击+按钮。选择创建一个新的Android应用程序,然后选择正确的模块的选项。 Apply,然后你可以删除,如果你希望你在使用之前测试配置。然后,每次你运行,请确保您运行的是作为一个Android应用程序,而不是一个测试,它会安装自动启动。

Open the "Edit Configurations" pane and click the '+' button. Select the option to create a new 'Android Application' and then select the correct module. Apply, and you can then delete the test configuration you were using before if you wish. Then everytime you run, make sure you are running as an Android Application and not a test and it will auto-launch on install.