The helper gives you a reference to an existing open database, and
clients of the helper should not close the databases they get from it.
-Jeff
On Sun, Jan 25, 2009 at 2:48 AM, Al Sutton a...@funkyandroid.com wrote:
Looking through android.content.SearchRecentSuggestionsProvider.java
there
But my question is who does close the database reference?
The SQLiteOpenHelper javadoc says Make sure to call close()
http://code.google.com/android/reference/android/database/sqlite/SQLiteOpenHelper.html#close%28%29
when you no longer need it., but the ContentProvider appears not to do
this
A... So when a ContentProviders method gets called for the first
time and calls through the a SQLiteOpenHelper descendant the
SQLiteDatabase reference is cached (as per the SQLiteOpenHelper
javadocs) and thus is shared between processes using the ContentProvider
within a process scope for