Do not start Auto application when starting through android studio

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

Its creation and installation in my devices.

But the application does not start automatically, as in eclipse.

It seems that I installed via adb install in the terminal. It needs to be manually opened every time I install.

+8
android android-studio
source share
6 answers

This is because you are using it as a “test” and not as an “Android app”.

Open the Edit Configurations panel and click the + button. Choose the option to create a new “Android app,” and then select the correct module. Apply, and then you can remove the test configuration that you used before if you want. Then, every time you launch, make sure that you are running as an Android application, not a test, and it will automatically start upon installation.

+21
source share

In Android Studio, you should go to Run -> Edit configuration -> select Launch default Activity

+7
source share

Updating Android Studio to the latest version resolved the issue in my case.

+1
source share

Try the following:

  • Open MainActivity.
  • Right click and select "Run MainActivity"
0
source share

Disabling Instant Startup worked for me. I don’t know the reason for this, though.

To disable instant launch (on Android Studio 2.3), go to the "File -> Settings -> Build, Run, Deploy ->" Uncheck "Instant Startup" box.

-2
source share

Click Run -> Run on the toolbar or click the green play icon to install and run on the device.

-8
source share

All Articles