

ANDROID SQLITE COMMANDS ANDROID
3 July 2018 S.RENUKADEVI/AP/SCD/ANDROIDDATABASE USING SQLITEĦ Creating And Updating Database In Android Database name is passed in constructor call. So SQLiteOpenHelper class call the onCreate() method after creating database and instantiate SQLiteDatabase object. It will be called whenever there is a first call to getReadableDatabase() or getWritableDatabase() function available in super SQLiteOpenHelper class. onCreate(SQLiteDatabase sqLiteDatabase) method is called only once throughout the application lifecycle. The SQLiteOpenHelper only require the DATABASE_NAME to create database After extending SQLiteOpenHelper you will need to implement its methods onCreate, onUpgrade and constructor. It provides two methods onCreate(SQLiteDatabase db), onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion). SQLiteOpenHelper class creating, updating and other operations you need to create a subclass or SQLiteOpenHelper class SQLiteOpenHelper is a helper class to manage database creation and version management. Table of Contents 1 Creating And Updating Database In Android 2 SQLite Example In Android Studio 3 Add & Retrieve Image From SQLite Database: 3 July 2018 S.RENUKADEVI/AP/SCD/ANDROIDDATABASE USING SQLITEĥ Creating And Updating Database In Android

3 July 2018 S.RENUKADEVI/AP/SCD/ANDROIDDATABASE USING SQLITEĤ 1 Creating And Updating Database In Android Important Note – The database created is saved in a directory: data/data/APP_Name/databases/DATABASE_NAME. So, it doesn’t required any administration or setup procedure of the database. It carry light weight data and suitable with many languages. It is available locally over the device(mobile & tablet) and contain data in text format. Android has built in SQLite database implementation.

Whenever an application needs to store large amount of data then using sqlite is more preferable than other repository system like SharedPreferences or saving data in files. 3 July 2018 S.RENUKADEVI/AP/SCD/ANDROIDDATABASE USING SQLITEģ SQLite Tutorial With Example In Android Studio It support embedded relational database features. SQLite is a Structure query base database, open source, light weight, no network access and standalone database. Presentation on theme: "Android Database using SQLite"- Presentation transcript:ģ July 2018 S.RENUKADEVI/AP/SCD/ANDROIDDATABASE USING SQLITE 1Ģ SQLite Tutorial With Example In Android Studio
