How to remove dangling cursors in Android? I am closing the database whenever my work with cursors is completed.
I want this as I am getting the same error as showed in Google Issue Tracker issue 36921069.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Call
close()on the Cursor object when you no longer need it (e.g.,onDestroy()of the activity using it).That has nothing to do with closing the cursors.