Skip to content Skip to sidebar Skip to footer

Android App Startup Problems (growing Heap)

I have a very big Problem with our App. We need much space for Bitmap transformation, but directly at Startup (of the App) most of the Memory gets Allocated with unknown Stuff... B

Solution 1:

You got one line of code that can possibly cause that memory allocation if you are not using a custom Application class and that is setContentView(). You may have big images on your Layout xml or too many images.Try to simplify your layout xml or use smaller images.If you are not getting out of memory exception you don't need to change this; however you will need more space for image operations so you can do this(But this is not recommended):android:largeHeap="true"

Solution 2:

I found the Problem. In my drawable Folder was not the correct Icon.png. The Icon I used had a Resolution of 708x708. I replaced it with a smaller one, now it works... Thank you Ercan for pushing me in the right direction.

Post a Comment for "Android App Startup Problems (growing Heap)"