Android OutOfMemory When Loading Images

If you are progmatically loading an ImageView in Android, there are a couple things you need to know:

  1. By default your AndroidManifest is setup to use image optimization (think games). This is most likely bad.
  2. It does not take a large image to cause an OutOfMemoryException.
  3. The Heap size is small, by default.

To fix, change/add these lines in your manifest: