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 "android.app.Activity"
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.
Written by Yigit Boyar
Related protips
1 Response
Very useful, thanks!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#