SQliteOpenHelperを使用してdbテーブルを作成するときに、空のDBを事前に準備する必要がありますか?ドキュメントから。SQLiteOpenHelperの、それは述べています:
public abstract void onCreate (SQLiteDatabase db)
Called when the database is created for the first time. This is where the creation of tables and the initial population of the tables should happen.
それは私を混乱させます:1。dbがいつ作成され、onCreate()メソッドをトリガーするのですか?2.データベースが存在しない場合、データベースは自動的に作成されますか?
質問を確認していただき、ありがとうございます。