Briefing Android Knowledge

Which of these is the correct procedure to create and use an SQLite database?

Which of these is the correct procedure to create and use an SQLite database?

A.
Call the ApplicationContext methods createDatabase() and openDatabase().

B.
Extend the android.database.sqlite.SQLiteOpenHelper class, implementing the onCreate()
method and onUpgrade() methods, then call the getWritableDatabase() method.

C.
Declare an instance of the android.database.sqlite.SQLiteOpenHelper class and call each of
the methods onCreate(), onUpgrade(), and getWritabieDatabase().

D.
Implement the android.database.SQLiteOpenHelper interface, writing the implementation of the
onCreate() and onUpgrade() methods, and pass it as a parameter to
ApplicationContext.createOrOpenDatabase().

Explanation: