memory size of the emulator


Last Updated:

  1. billconan

    billconan New Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    2
    Likes Received:
    0
    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

    Joined:
    Aug 10, 2008
    Messages:
    23
    Likes Received:
    7
    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
     

Share This Page

Loading...