Android : Can OOM Exception occur in the .xml loading?

on Wednesday, September 10, 2014


I'm writing an Android application which loads large bitmaps. I can manage the ones I'm loading programmatically quite well so that the app is not that much memory consuming. But what can I do for the backgrounds of the app that are set hard-coded in the xml files of the layouts? Is there any guarantee that the won't be loaded in full resolution if the memory on the device is low ? or is the correct way out not to set them from xml but do them again programmatically?


0 comments:

Post a Comment