As the error message says, you have to call close(). Good practice is to wrap your use of the writable database in a try/catch block and call close in the finally block so that close never gets skipped for any reason.
On Jan 28, 2:43 am, manigault <[email protected]> wrote: > Hi all, i need to use the SqliteDataBase from from multiple threads. > According the the sqlite documentation sqlite is threadsafe if it's > compiled with SQLITE_THREADSAFE = 1 and in android this can be done by > calling SQLiteDatabase.setLockingEnabled(true) ( the default value is > also true so it works even if you don't call it). So i need different > sqlite connection for all threads that will be using the database. How > can i open multiple database connections with getWritableDatabase() i > got Exception - Leak found ... SQLiteDatabase created and never > closed -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

