Skip to main content

Home/ Android Dev/ Group items tagged SQLiteClosable

Rss Feed Group items tagged

Vincent Tsao

attempt to acquire a reference on a close SQLiteClosable - Android Developers | Google ... - 0 views

  • 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
1 - 1 of 1
Showing 20 items per page