What is SQLiteOpenHelper?
It is a class found inside android.database.sqlite package.
It is a helper class that helps in creating the database, handling the operations and also the version management.
To use sqliteopenhelper, we will create a class, and then we will extend SQLiteOpenHelper inside the class that we created.
Creating and Managing Database with SQLiteOpenHelper
So open the project we created in the video.
Now create a class, you can name it anything.
Inside this class we need to override onCreate() and onUpgrade() method. Inside onCreate() we will create the tables required and inside onUpgrade() we can upgrade the database (like we can add more tables).
We will also define the methods for all the operation that we want to be performed in our database.