Thien Pham

Results 2 comments of Thien Pham

``` android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:890) at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:635) at android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:321) at android.database.sqlite.SQLiteConnection.setWalModeFromConfiguration(SQLiteConnection.java:295) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:216) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:194) at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:493) at...

My issue occurs when I use the Firebase Database. And I remove this code to resolve issue: ``` FirebaseDatabase.getInstance().setPersistenceEnabled(true); ```