How to find cursors that are not closed in whole project that may cause memory leaks and other problems since Android lint warns them now?
Android, detect open cursors in whole project
Asked Answered
Finally I found the way!
from top menu: Analyze
>Inspect code
then whole project
and OK
Now wait till Android studio
finds lint
problems in your app, then go to the below item and check if the not recycled item is Cursor
, also you can use it for other resources that are open but not closed!
Android > Lint > Performance
then Missing recycle() calls
© 2022 - 2024 — McMap. All rights reserved.
cursor
and then check it, but it is too slow to do so. Thanks. – Lusterxposed
to log out – Participation