我应该在使用 SQliteOpenHelper 创建数据库表时提前准备一个空数据库吗?从文档。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. 何时创建数据库并触发 onCreate() 方法?2. 数据库不存在时会自动创建吗?
感谢您查看问题并帮助回复!