Setimageresource Running Out Of Memory
I have a repeated Runnable task that performs a setImageResource() every 10 seconds (the resource is a jpeg file). This is the only significant thing happening in the activity. How
Solution 1:
You have to call recycle on previous bitmaps. Android is allocating memory for image recources and is not freeing it until you call recycle method with your hands.
Solution 2:
Have you tried setting the image to null before setImageResource():
object.image = null;
object.setImageResource();
Post a Comment for "Setimageresource Running Out Of Memory"