Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 954
joe_deniable Avatar asked May 17 '13 19:05

joe_deniable


People also ask

How do I fix run configuration in IntelliJ?

From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . In the left-hand pane of the run/debug configuration dialog, click Edit configuration templates…. In the Run/Debug Configuration Templates dialog that opens, select a configuration type.

Where does IntelliJ save run configurations?

By default, it is disabled, and IntelliJ IDEA stores run configuration settings in . idea/workspace. xml.


1 Answers

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).

like image 62
Blundell Avatar answered Sep 30 '22 22:09

Blundell