I was able to launch the 2 animation by decreasing the frame number to 4 for each. It works as a single launch but the OutOfMemoryError exception still occurs. The problem is when I want to go back from the last activity to the first one (as I wrote it is a 'ring' app), or when I exit and open the app again - it doesn't even come to the activity with animations. Just then an OutOfMemoryError. So I must be skipping some code to free the memory. I followed this topic:
http://groups.google.com/group/android-developers/browse_thread/thread/15c3ee93d18de93c/51426df70b200f50?lnk=gst&q=AnimationDrawable+and+Out+of+Memory+Errors#51426df70b200f50 So put the analyseAnimation.setCallback(null) & analyseImage.setBackgroundDrawable(null) in the onDestroy() and onPause() method, but it doesn't help. There must be a way to free the memory, that I do not know about. The ImageView and Animation Drawable variables are non-static fields of the activity class. How can I free the memory?? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

