- There are four main ways to persist data in Android: shared preferences, file systems, external storage, and SQLite databases.
- SQLite is the default database used in Android. It is a lightweight relational database embedded within Android applications.
- The SQLiteOpenHelper class manages database creation, version management, and handles opening connections to the database. It requires a database name to create the database.
- The SQLiteDatabase class contains methods for executing SQL statements like create, insert, update, delete, and query. It is used to perform operations on the SQLite database like inserting, updating, deleting, and retrieving data.