Last Updated: September 09, 2019
· yigit

Testing Activity leaks on Android

When you are searching for memory leaks in an Android app using Eclipse Memory Analyzer, make sure you run
OQL: select * from instanceof ""
and see only 1 activity.
if there are more than one, right click on the item, "Merge shortest paths to GC roots" -> "Exclude phantom/ week/ soft etc. references" and you will see why you are leaking it.

1 Response
Add your response

Very useful, thanks!

over 1 year ago ·