I am developing an Android application that has a database having 14-15 tables. I want to access these tables obviously for querying, inserting, deleting etc.
Should I make a single helper that would open the database and then create a single adapter that would access it and query it as I plan to? Or make a helper for each table?
I am confused about this point. The first option seems more realistic to me because I wouldn’t need to open the database multiple times.
Create a class that extends from
SQLiteOpenHelperand make method for each one.One for insert, one for delete, one for update and one from retrieving ResultSet.
Here is an example:
`