You can delete the log file using the code below
@Override
public void onOpen(SQLiteDatabase db) {
Cursor cc = db.rawQuery("PRAGMA journal_mode=DELETE",null);
Log.i(TAG,"--- cursor count " + cc.getCount());
super.onOpen(db);
}
You need to use the cursor. The cursor is an interface that provides random read and write access to the result set returned by the database query. The log file will be deleted if you use the cursor.
source
share