Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8013267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:35:38+00:00 2026-06-04T19:35:38+00:00

I added the android:largeHeap=true attribute to my android manifest, but it doesn’t seem to

  • 0

I added the android:largeHeap=”true” attribute to my android manifest, but it doesn’t seem to make a difference in my application’s allowed memory. When I run the below activity on my Acer A100 (running android 3.2.1), I get the following results:

largeAmount = 256
normalamount = 48
allowedMax = 48
outofmemoryexception allocating the 60mb byte array.


public class TempActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
        int largeAmount = manager.getLargeMemoryClass();
        int normalAmount = manager.getMemoryClass();

        long allowedMax = Runtime.getRuntime().maxMemory()/1024/1024;

        byte[] bigarray = new byte[62914560];
    }
}

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.temp"
    android:largeHeap="true"
    android:versionCode="1"
    android:versionName="1.0" >
    <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="11"/>
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".TempActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:35:39+00:00Added an answer on June 4, 2026 at 7:35 pm

    Oops, the largeHeap attribute belongs in the “application” tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added Zying android application to my application as library. Then edited Manifest.xml and
I added the application into Android market, but some phones(i think with android lower
I am working with the sample Home application project on http://developer.android.com/resources/samples/Home/index.html I've added another
How to start an activity after the animation has ended. I have added android:oneshot=true
Recently i added android 4.0 into the SDK Manager and installed it.But after this
I have added the library ksoap2-android-assembly-2.4-jar-with-dependencies.jar but i am getting below error : Exception
I added this is my manifest file - <receiver android:name=.ServiceReceiver> <intent-filter> <action android:name=android.intent.action.PHONE_STATE />
Hey, I just added a Widget to my Android App but when I now
I've added shortcuts options for my Android app, but I found out other apps
I have added the Android Licensing to my Application. to check for the application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.