- db
- The database.
Called when the database connection is being configured, to enable features such as write-ahead logging or foreign key support.
This method is called before SQLiteOpenHelper.OnCreate(SQLiteDatabase), SQLiteOpenHelper.OnUpgrade(SQLiteDatabase, System.Int32, System.Int32), SQLiteOpenHelper.OnDowngrade(SQLiteDatabase, System.Int32, System.Int32), or SQLiteOpenHelper.OnOpen(SQLiteDatabase) are called. It should not modify the database except to configure the database connection as required.
This method should only call methods that configure the parameters of the database connection, such as SQLiteDatabase.EnableWriteAheadLoggingSQLiteDatabase.SetForeignKeyConstraintsEnabled(bool), SQLiteDatabase.SetLocale(Java.Util.Locale), SQLiteDatabase.SetMaximumSize(long), or executing PRAGMA statements.