If you're managing the cursor yourself the cleanest way to go is probably this: Cursor cursor = getContentResolver().query(...); try { // read from the cursor and do stuff } finally { if (cursor != null) cursor.close(); }
Another option if you still want to use Activity.managedQuery() is to
get your information and then:
stopManaging(cursor);
cursor.close();
Cheers,
Justin
Android Team @ Google