joe_deniable
joe_deniable

Reputation: 2572

Android Studio (Intellij Idea) - run/debug configuration - remembering which device to run on

I guess this is a bit of a longshot, but with Eclipse, if you were using an Android emulator which was not the included one (for example, VirtualBox), you could select it the first time you ran your program, and tick a checkbox saying "Use this device for future launches". But the same option does not exist in Android Studio (Intellij Idea), meaning you have to choose the emulator every time you want to run the program.

I'm wondering if anyone knows of any way I can hack this so it will always run on a particular emulator which is not the built-in emulator. Can I put the emulator's ip address and port into a config file somewhere so the program will always launch on it without me having to click? I know it's a small thing but it's just convenience.

Upvotes: 9

Views: 13742

Answers (2)

joe_deniable
joe_deniable

Reputation: 2572

The correct answer is to select USB device as the default. The program will then automatically run on the connected Virtualbox emulator. The answer was provided by sasha_trn in this comment

Upvotes: 0

Blundell
Blundell

Reputation: 76458

Sure it does, click the dropdown next to the run config, and press "Edit Configurations"

Run C

Run Configs

You can then select an Emulator, A Device, or to ask you when you run the app (like you have now).

Upvotes: 24

Related Questions