Monthly Archives: March 2017

Android Development Notes

Avoid using non-static inner classes in an activity if instances of the inner class could outlive the activity’s lifecycle. In Java, non-static inner and anonymous classes hold an implicit reference to their outer class. Static inner classes, on the other hand, do not. Instead, prefer static inner classes and hold a weak reference to the […]