你能幫我理解爲什麼我'SQLiteException:數據庫被鎖定'異常嗎?在我的內容提供商,我在提供構造函數中調用數據庫被鎖定異常
mDb = SQLiteDatabase.openDatabase(path, null, 0);
09-07 19:44:43.912 6830 6830 E AndroidRuntime: FATAL EXCEPTION: main
09-07 19:44:43.912 6830 6830 E AndroidRuntime: android.database.sqlite.SQLiteException: database is locked
09-07 19:44:43.912 6830 6830 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
09-07 19:44:43.912 6830 6830 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1990)
09-07 19:44:43.912 6830 6830 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:905)
09-07 19:44:43.912 6830 6830 E AndroidRuntime: at com.mycompany.myapplication.provider.MyContentProvider.query(MyContentProvider.java:356)
我在我的ContentProvider中打開數據庫。我只有1個ContentProvider打開該數據庫。 – michael