4/26/2023 0 Comments SqliteopenhelperOnCreate(SQLiteDatabase sqLiteDatabase)method is called only once throughout the application lifecycle. After extending SQLiteOpenHelper you will need to implement its methods onCreate, onUpgrade and constructor. The SQLiteOpenHelper only require the DATABASE_NAME to create database. The SQLiteOpenHelper is responsible for opening database if exist, creating database if it does not exists and upgrading if required. It provides two methods onCreate(SQLiteDatabase db), onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion). SQLiteOpenHelper is a helper class to manage database creation and version management. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |