/SinsOfMemoryLeaks

Some common patterns of memory leaks in Android development and how to fix/avoid them

Primary LanguageJavaApache License 2.0Apache-2.0

Sins of Memory Leaks

This app shows common patterns of memory leaks in Android development and how to fix them. LEAK branch has the code which has memory leaks. These memory leaks are fixed in FIXED branch.

LEAK Branch FIXED Branch
Leak app screenshot Leak fixed app screenshot

Build

Two branches have different app ids which allow them to co-exist on the same device or emulator.

Launcher icons for both apps

##Warning This app contains various memory leaks. It is intended for Android developers' study purpose only. The author does not take responsibility for any potential damage to your devices.

I am going to write an artical about the examples in this app. Stay tuned in this space...