I noticed something odd. If I open an image (1.6mb) from Drawable Resource, the app crashes with the OutOfMemory
error, however, if I open the same image which is saved on SD Card, the app does not crash.
What is the effect of the two?
Solution:
Place images in /drawable-nodpi folder and not /drawable
Cause:
pictures in "/drawable" generic folder are considered by the system like "/drawable/mdpi". So the images are resized when used by the system, causing the OutOfMemory error.