vendredi 5 février 2016

SQLite statement aborts, database locked in Android app

In my app I am inserting data in my SQLite database using ORMLite. On some devices I get the following error when inserting data:

02-05 09:29:56.864  22365-22441/com.app E/SQLiteLog﹕ (5) statement aborts at 2: [PRAGMA journal_mode=PERSIST]
02-05 09:29:56.864  22365-22441/com.app W/SQLiteConnection﹕ Could not change the database journal mode of '/data/data/http://ift.tt/20dCBav' from 'wal' to 'PERSIST' because the database is locked.  This usually means that there are other open connections to the database which prevents the database from enabling or disabling write-ahead logging mode.  Proceeding without changing the journal mode.

I have no idea how I can fix this problem for ORMLite. Does anyone have a fix for my problem?

Aucun commentaire:

Enregistrer un commentaire