Application Crashes Because It Takes Too Much Memory?
I am about to finish my Application and recently I encountered a problem that I can't fix. My application is contained of 5 layouts, and 1 activity for each layout, 5 layouts. Now
Solution 1:
This Error occurs usually when loading large bitmaps. Are the drawables for you ImageButtons high resolution? If so, this is likely the error. You should try downsampling them to their appropriate resolution, but for a quick-fix, adding android:largeHeap="true"
under the <application>
tag of your AndroidManifest.xml file can allow your application to load large images without an out of memory error.
If neither of the above work, then the problem is coming from somewhere else in the code. But from personal experience, the bitmaps are the thing most likely to cause simple code to crash from memory issues.
Post a Comment for "Application Crashes Because It Takes Too Much Memory?"