memory size of the emulator


  1. billconan

    billconan New Member

    hello everyone,

    i want to create a bitmap object with 1512*1512 in size. and i got a out-of-memory exception. question is how to set the memory size for the emulator?

    thanks.

    Advertisement
    :
  2. jon21569

    jon21569 Member

    I just had the same issue and was able to increase the emulator memory. I first had to download eclipse-SDK-3.5.2-win32-x86_64. When I tried to increase the memory using eclipse-SDK 3.5.1 it did not work. After downloading Eclipse and installing the android SDK I created a custom emulator through Window->Android SDK and AVD Manager. Then New and in Hardware I set Max VM application heap size to 192MB and Device ram size to 192MB. Other fields I set that are not related to memory were Target: Andorid 2.0, SD Card 256MB. After doing this I created an android application that created an 800x2500 Bitmap and Memory usage showed 20,000K.

    Link for Eclipse download
    http://download.eclipse.org/eclipse/downloads/drops/R-3.5.2-201002111343/winPlatform.php#EclipseSDK
Loading...

Share This Page