Blog Archives

Android Don’t Use Finalizers

Finalizers are a way to have a chunk of code executed when an object is garbage collected. Pros: can be handy for doing cleanup, particularly of external resources. Cons: there are no guarantees as to when a finalizer will be

Posted in Android, Tips and Tricks Tagged with: ,