Use this dialog box to create configurations used to run or debug Android applications and activities on actual or virtual devices.
This dialog box consists of three tabs:
The dialog also provides a toolbar and the options that are common to all run/debug configuration types.
General tab
| Item | Description |
|---|---|
| Module | From this drop-down list, select a module to which this configuration will be applied. |
| Package |
In this area, appoint the .apk file that will be deployed to the target virtual or physical device.
|
| Activity |
In this area, appoint the activity that will be launched on the application start.
|
| Target Device |
In this area, select the type of device to run/debug the application on. The available options are:
Selecting the Show chooser dialog or USB device option may be helpful if you are going to run the application on a physical device which will be plugged in later and therefore the set of available devices cannot be foreseen.
|
Emulator tab
In this tab, specify additional configuration settings for launching an Android emulator.
| Item | Description |
|---|---|
| Network Speed |
From this drop-down list,
select the network transfer rate to be emulated.
|
| Network Latency |
Use this drop-down list to specify the time delay between the initial input and the output.
You can select between the following latency levels :
|
| Wipe user data |
Select this check box to have the contents of the user-data image copied to the new user-data disk image while resetting the image.
By default, the <system>/userdata.img is copied.
|
| Disable boot animation | Select this check box if you do not want an animated boot screen displayed upon the emulator start-up. |
| Additional command line options |
In this text box, type the additional options to be passed to the emulator via the command line.
For lengthy command lines, click the |
Logcat tab
In this tab, configure the scope of log data shown during a run/debug session.
| Item | Description |
|---|---|
| Clear log before launch | Select this check box if you want data from previous sessions to be removed from the log file before starting the application. |
| Show logcat automatically |
|
| Filter to only show output from this application | Select this check box if you do now want to clear the log file, but want IntelliJ IDEA to display log data that is only related to the currently running application. |
Toolbar
| Item | Shortcut | Description |
|---|---|---|
| Alt+Insert | Click this button to add a new configuration to the list. |
| Alt+Delete | Click this button to remove the selected configuration from the list. |
| Ctrl+D | Click this button to create a copy of the selected configuration. |
| Edit defaults | Click this button to edit the default configuration templates. The defaults are used for newly created configurations. |
or
| Alt+Up or Alt+Down | Use these buttons to move the selected configuration or folder up and down in the list.
The order of configurations or folders in the list defines the order in which configurations appear in the Run/Debug drop-down list on the main toolbar. |
| Move into new folder / Create new folder | Use this button to create a new folder.
If one or more run/debug configurations are in focus, the selected run/debug configurations are automatically moved to the newly created folder. If only a category is in focus, an empty folder is created. Move run/debug configurations to a folder using drag-and-drop, or the |
| Sort configurations | Click this button to sort configurations in alphabetical order. |
Common options
| Item | Description |
|---|---|
| Name | In this text box, specify the name of a new run/debug configuration. This field is not available for the default run/debug configurations. |
| Defaults | This node in the left-hand pane contains the default run/debug configuration settings. Select configuration to modify its default settings in the right-hand pane. The defaults are applied to all newly created run/debug configurations. |
| Share |
Select this check box to make the run/debug configuration available to other team members.
If the directory-based project format is used,
the settings for a run/debug configuration are stored in a separate .xml file in the
If the file-based format is used,
the settings are stored in the This check box is not available when editing the run/debug configuration defaults. |
| Before launch | Use the controls in this area to specify which tasks must performed before applying the run/debug
configuration. The tasks are performed in the order they appear in the list.
The following options are available:
|
See Also
Procedures:
- Creating an Android Run/Debug Configuration
- Creating and Editing Run/Debug Configurations
- Running
- Debugging
Reference:
Concepts:
on the toolbar (see
and select it in the
to be emulated.
or
(