I noticed that my application is leaking memory. This can be seen in DDMS, and I managed to get a OutOfMemoryError.
I found the source of the leak. One of the activitie
I kept investigating and what I've found is really suprising. It seems there is no real memory leak. It happens only when app is in debugging mode in DDMS.
DDMS seems to somehow hold references to those finished treads, preventing them from being GC-ed. When i disconnect the phone and connect again, I can see that all "leaked" resources have been released.
It looks like a bug in DDMS.