AVD Selector: Add a "Start" button to launch the selected AVD in a
new emulator. Doesn't detect if the AVD is already running; instead prints the emulator error.
This commit is contained in:
@@ -1521,7 +1521,7 @@ public final class AndroidLaunchController implements IDebugBridgeChangeListener
|
||||
/**
|
||||
* Get the stderr/stdout outputs of a process and return when the process is done.
|
||||
* Both <b>must</b> be read or the process will block on windows.
|
||||
* @param process The process to get the ouput from
|
||||
* @param process The process to get the output from
|
||||
*/
|
||||
private void grabEmulatorOutput(final Process process) {
|
||||
// read the lines as they come. if null is returned, it's
|
||||
|
||||
@@ -411,6 +411,7 @@ public class DeviceChooserDialog extends Dialog implements IDeviceChangeListener
|
||||
offsetComp.setLayout(layout);
|
||||
|
||||
mPreferredAvdSelector = new AvdSelector(offsetComp,
|
||||
mSdk.getSdkLocation(),
|
||||
mSdk.getAvdManager(),
|
||||
new NonRunningAvdFilter(),
|
||||
DisplayMode.SIMPLE_SELECTION);
|
||||
|
||||
@@ -195,7 +195,9 @@ public class EmulatorConfigTab extends AbstractLaunchConfigurationTab {
|
||||
// create the selector with no manager, we'll reset the manager every time this is
|
||||
// displayed to ensure we have the latest one (dialog is reused but SDK could have
|
||||
// been changed in between.
|
||||
mPreferredAvdSelector = new AvdSelector(offsetComp, null /* avd manager */,
|
||||
mPreferredAvdSelector = new AvdSelector(offsetComp,
|
||||
Sdk.getCurrent().getSdkLocation(),
|
||||
null /* avd manager */,
|
||||
DisplayMode.SIMPLE_CHECK);
|
||||
mPreferredAvdSelector.setTableHeightHint(100);
|
||||
mPreferredAvdSelector.setSelectionListener(new SelectionAdapter() {
|
||||
|
||||
Reference in New Issue
Block a user