A SQLiteConnection object for database was leaked! Please fix your application

Possible Solutions:

  • You have not committed the transactions you have started (You should
    always close the transaction once you started)
  • Check whether you have closed the cursors you have opened if you are
    using Sqlite (Looks like you have done this step from the code you posted)
  • Also move the db.close to finally block
  • You have not called db.close on a database before deleting it with context.deleteDatabase(...) and then recreating it with dbHelper.getWritableDatabase()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)