-
public class ReadOnlySupportSqliteOpenHelper
-
-
Field Summary
Fields Modifier and Type Field Description public final static ReadOnlySupportSqliteOpenHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final SupportSQLiteDatabaseopenExistingDatabaseAsReadOnly(Context context, File file, Integer databaseVersion)Opens a database that has already been initialized by something else. -
-
Method Detail
-
openExistingDatabaseAsReadOnly
final SupportSQLiteDatabase openExistingDatabaseAsReadOnly(Context context, File file, Integer databaseVersion)
Opens a database that has already been initialized by something else.
- Parameters:
context- Application context.file- Database file name.databaseVersion- Version of the database as set in https://sqlite.org/pragma.html#pragma_user_version This is required to bypass database creation/migration logic in Android.
-
-
-
-