Do i have to close a cursor when using
startManagingCursor(cursor); //I know its deprecated
and
cursor.registerContentObserver(..
if so, where to close it?
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.
If using
startManagingCursoryou do not need to close the cursor, Activity will take care of that for you.But if you have called
registerContentObserver, you need to callunregisterContentObserver. Usually you call registerContentObserver in OnResume and unregisterContentObserver in OnPause, But it can change depending upon what kind of operations you are performing inContentObserver.