I am trying to modify journal_mode for my database using code. I tried SQLiteDatabase.execSQL ("PRAGMA journal_mode = OFF"), but it fails because the expression "PRAGMA journal_mode = OFF" returns the result (I checked it from the terminal), and therefore Android considers this to be a request, and complains, that i should use execQuery instead. But what I'm trying to accomplish is not a request.
I also tried to compile the pragma expression in SQLiteStatement and called the execute method, but the same result.
Can anyone suggest any alternatives for doing this work with code?
Thanks Ranjit
source share