Why use SQLiteOpenHelper over SQLiteDatabase?

SQLiteDatabase

SQLiteDatabase has methods to create, delete, execute SQL commands,
and perform other common database management tasks.

SQLiteOpenHelper

A helper class to manage database creation and version management.

I will say this much, the onUpgrade that comes with SQLiteOpenHelper comes in REALLY handy when upgrading your application. It’s mainly for creation and upgrading / version management. SQLiteDatabase is mainly for CRUD operations (you can create with it but that is what SQLiteOpenHelper is for).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)