Kamran Akbary
Kamran Akbary

Reputation: 2981

Android, detect open cursors in whole project

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?

Upvotes: 5

Views: 1444

Answers (1)

Kamran Akbary
Kamran Akbary

Reputation: 2981

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

Upvotes: 10

Related Questions