diff options
Diffstat (limited to 'sdkmanager')
-rw-r--r-- | sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java index 89aa8ce..e9f2341 100644 --- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java +++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java @@ -922,6 +922,21 @@ public class AvdCreationDialog extends GridDialog { mAvdName.getText()); } + // On Windows, display a warning if attempting to create AVD's with RAM > 512 MB. + // This restriction should go away when we switch to using a 64 bit emulator. + if (SdkConstants.CURRENT_PLATFORM == SdkConstants.PLATFORM_WINDOWS) { + long ramSize = 0; + try { + ramSize = Long.parseLong(mRam.getText()); + } catch (NumberFormatException e) { + // ignore + } + + if (ramSize > 512) { + warning = "On Windows, set emulated RAM to be less than or equal to 512 MB."; + } + } + if (mGpuEmulation.getSelection() && mSnapshot.getSelection()) { valid = false; error = "GPU Emulation and Snapshot cannot be used simultaneously"; |