From 5bce52ecc253246e5213779d9b8cf89bd6569dda Mon Sep 17 00:00:00 2001 From: samuelwang Date: Fri, 15 Jan 2016 15:39:29 +0800 Subject: [PATCH] Update Cache.java When the storage space is insufficient, exception will be reported , for example The low-end machine --- src/com/activeandroid/Cache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/activeandroid/Cache.java b/src/com/activeandroid/Cache.java index 6495e3790..32434bc42 100644 --- a/src/com/activeandroid/Cache.java +++ b/src/com/activeandroid/Cache.java @@ -103,7 +103,7 @@ public static boolean isInitialized() { } public static synchronized SQLiteDatabase openDatabase() { - return sDatabaseHelper.getWritableDatabase(); + return sDatabaseHelper.getReadableDatabase(); } public static synchronized void closeDatabase() {