Hi everyone,

I have a activity MyActivity, which "kills" yourself using the finish
() method.

The problem is: after the kill operation, method onDestroy is called,
but the object of type MyActivity is never garbage-collected (I forced
the GC run). It is causing a memory leak, because MyActivity is
launched many times, by other activities.

Does anyone know when the Activity object is supposed to be garbage-
collected, and what can be done to avoid the issue I mentioned?

Thanks in advance.


Felipe Silveira
http://www.felipesilveira.com.br

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to