Should I create a class that inherits SQLiteOpenHelper for each table in my database?
问题 I need to create an android app database , but I was wondering if I should create one class that inherits SQLiteOpenHelper for each table that exists in my database ? Or should I create One class : for example MyAppDatabase that inherits from SQLiteOpenHelper and create all my tables in onCreate method as well as update and delete functions ? ANy recommendations ? 回答1: You only need one database helper for all tables in a database and thus you'd use the one onCreate method for the creation of