Using "android:largeheap"

Discussion in 'Android Questions' started by Mickster, Feb 11, 2012.

  1. Mickster

    Mickster Active Member Licensed User

    Our app is dedicated for use on a Tablet, running Honeycomb (Android 3.0.x) or later. Apparently, this uses API level 11 and up.

    I also came across this statement (from here)

    “As of API 11 , it's possible to have more heap size by adding the "android:largeHeap = true" into your manifest file. In some devices , the heap size may increase to 256 MB. For API 10 and older , it's unfortunately impossible to increase the heap size since it's a system variable.“

    And this document claims that different systems have different sizes.

    We tried entering 'android:largeHeap = “true” ' in the Manifest Editor but the compiler didn't like it.

    Here's an example of someone using it successfully.

    Would someone happen to know just how to make this entry in the Manifest Editor, please? :sign0104:
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should add this line:
    You should configure the IDE to use android.jar from platform level 10 or above.
  3. COBRASoft

    COBRASoft Active Member Licensed User

    Anybody got this working? It keeps failing here :(. Android SDK 10 installed and I changed the path to android.jar.
  4. Mickster

    Mickster Active Member Licensed User

    You need minimum SDK 11.

    Works beautifully!!!!! Thanks Erel! Free of memory problems at last!

  5. COBRASoft

    COBRASoft Active Member Licensed User

    Nice for you! I'm on Android 2.3.4 :(.
  6. Informatix

    Informatix Expert Licensed User

    I'm probably going to answer something stupid, but instead of trying to eat more memory, why not reducing the consumption ? The memory is something critical in a lot of Android apps using graphics, so the solution is probably more a clever way of using it than increasing the heap size. Of course, this comment is purely theoretical.
    Last edited: Aug 30, 2012
    ilan likes this.
  7. manishmnit

    manishmnit New Member

    I have worked a lot on reducing the usage of memory but in the end i have no other option but to increase the memory size.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice