Gavin Aiken wrote: > Do you close a database after each query? No, I close the database when the component holding the connection closes (e.g., onDestroy()). AFAIK, SQLite database connections are cheap, in terms of the RAM they consume.
> Do you close the cursor inside > a method 'close()' of FilterDBHelper that also closes the cursor? I close the Cursor once I'm done with it, though I tend not to use a SQLiteOpenHelper for that role. But, that's just me. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---