android.database.sqlite.SQLiteDatabaseLockedException: error code 5: database is locked

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via mozilla.com by Unknown author, 10 months ago
android.database.sqlite.SQLiteDatabaseLockedException: error code 5: database is locked
at android.database.sqlite.SQLiteStatement.native_1x1_long(Native Method)
at android.database.sqlite.SQLiteStatement.simpleQueryForLong(SQLiteStatement.java:141)
at android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:821)
at android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:809)
at android.database.sqlite.SQLiteDatabase.getVersion(SQLiteDatabase.java:1239)
at org.digitalcampus.mobile.learning.application.DbHelper.(DbHelper.java:92)
at org.digitalcampus.mobile.learning.activity.MobileLearningActivity.updateReminders(MobileLearningActivity.java:231)
at org.digitalcampus.mobile.learning.activity.MobileLearningActivity.onResume(MobileLearningActivity.java:155)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1159)
at android.app.Activity.performResume(Activity.java:4553)

Users with the same issue

27 times, 1 year ago
6 times, 4 months ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
52 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.