I do
myImage.setBackgroundResource(R.drawable.mydrawable);
and I get an OutOfMemoryError
. But the resource is only 5kb !!! I had various stack trace, sometimes not saying anything, sometimes saying I was using around 5Mb and sometimes 7Mb.
This is on the Galaxy S4. On other devices I don't get the error. Is the GC known for being slow to trigger on certain devices ? Any other idea ?