Joshua’s sixth Item: Eliminate obsolete object references, in a distinctively croaky voice.
Stay tuned for more items from our “Effective Java for Android developers” Fragment series.
Eliminate obsolete object references
Supplemental reading (for the diligent ones that follow shownotes)
- Do click listeners leak memory? [stackoverflow.com]
- Square’s LeakCanary
- How to leak a context – Handlers and inner classes [androiddesignpatterns.com]
- Avoiding Memory leaks [android-developers.blogspot.com]