1. Check out our companion app, Forums for Android! Download from Google Play

memory size of the emulator

Discussion in 'Application Development' started by billconan, Feb 25, 2010.

  1. billconan

    billconan New Member
    Thread Starter
    5

    Dec 7, 2009
    2
    0
    5
    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
    16

    Aug 10, 2008
    23
    7
    16
    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...