Detecting memory leaks in Android applications
Mar 23, 2021Lily Chen

Summary
This post details common memory leak patterns in Android applications, specifically focusing on references to long-lived services and fragments' views. It introduces LeakCanary as a primary tool for detection and outlines strategies for integrating it into development workflows, including integration with Bugsnag for centralized tracking and with CI tests for automated detection. The post also provides practical advice on fixing leaks, particularly those involving views and binding, and introduces a mechanism to skip leak detection for specific tests.