bakua
bakua

Reputation: 14464

Don't show run tab after launch in Android Studio

I'm developing apps in Android Studio. But everytime I hit Run button, the Run tab pops up automatically from bottom with messages like Installing com.packagename etc..., Success, Launching

I've already disabled automatic displayin of Android DDMS tab (because I use DDMS from toolbar which opens new window) by editing configurations. But I can't disable this stupid automatic Run tab showing.

Is there any way to do this ?

Upvotes: 93

Views: 13346

Answers (8)

drmuelr
drmuelr

Reputation: 1125

The answers by Khaled and bighugedev will only affect the existing configuration of an existing project, or new configurations of an existing project, respectively. To disable the stupid automatic run tab on every new project by default, do the following.

First, go to File > New Projects Setup > Run Configuration Templates...

location of described option in menus

Within the dialog, select "Android App" from the sidebar. Then scroll down in the main view and make sure the "Activate tool window" is not selected, then click OK.

location of described setting in the resulting dialog

Note: this is a very similar dialog window as the other two answers show, but the dialog title specifies you are editing templates "for new projects."


Tested in Android Studio Koala | 2024.1.1 Patch 2 with new UI enabled.

Upvotes: 1

Biscuits
Biscuits

Reputation: 29

For Android Studio Giraffe 2022.3.1 and above:

In case you cannot find the "wrench" settings icon as described in Mahdi gh hastam's answer, you can get to that setting by Run/Edit Configurations... scroll down and untick "Activate tool window", as shown here:

"Activate tool window" at bottom of window titled "Run/Debug Configurations".

Upvotes: 2

Myroslav
Myroslav

Reputation: 1237

For a long time other advises to uncheck 'Activate tool window' was working good for me, until I started to work with Compose and use 'preview on device' - each preview has its own configuration, and this annoing 'Run' tab pops-up everytime and hides emulator window. My solution in new Android Studio UI (Android Studio Giraffe | 2022.3.1 Patch 2) is to:

  1. move 'Run' tab to right bottom - right click on tab and select 'Move to -> Right bottom'.
  2. drag 'Run' window all the way down, so that it's not visible.

After that, even though 'Run' tab still activates automatically on each app/preview run, but it remains minimized.

enter image description here

I don't know if it works the same in old UI, as mentioned previously, I'm using new one.

enter image description here

Upvotes: 0

Chenming
Chenming

Reputation: 141

I have a workaround that show Logcat tab instead of Run tab.

From Run menu do Edit Configurations… > Miscellaneous > Show logcat automatically

show Logcat tab instead of Run tab

Upvotes: 14

Mahdi gh hastam
Mahdi gh hastam

Reputation: 515

Finally I find way to avoid come up runToolbar when press Shitf+F10:

just click to setting icon enter image description here

next scroll down to disable "Active Tool Window" and press "OK" enter image description here

Upvotes: 39

bighugedev
bighugedev

Reputation: 1242

To disable this annoying thing forever (within the current project), open Run/Debug Configurations and click Edit configuration templates.... enter image description here

Scroll down to the bottom and uncheck Activate tool window.

enter image description here

Although to be honest, I've found no point in the Run tab at all, so I switched it off completely. It doesn't seem to be more useful than Logcat.

Upvotes: 28

Khaled
Khaled

Reputation: 2282

In case anyone still struggling with this annoying thing, there is a way to disable this annoying popup.

Note: this will remove the run tab altogether.

Disable run tab

So basically go to your Run/Debug configuration and Uncheck Activate tool window at the bottom. This gets rid of the Run tab.

Upvotes: 131

Piyush Agarwal
Piyush Agarwal

Reputation: 25858

There is no standard way of achieving this but I found an interesting workaround mentioned below and using the same.

When your run tab is opened, Instead of hiding it using right-top corner button, Drag it till it hides.

Like in picture shown below

enter image description here

Now Run your project run window wont appear, When you want it back click on run button in horizontal bar.

Working perfectly for me .

Upvotes: 35

Related Questions