What is the the difference between SQLiteOpenHelper
and SQLiteAssetHelper
?And how do I use them?
I know that when you use SQLiteOpenHelper
you have to override the onCreate()
and onUpgrade()
methods. Furthermore one can add, remove, and look-up database values.
However, I read that SQLiteAssetHelper
is better for something in my situation- being that I will have a pre-populated database and I will do more queries than adding or removing or anything else.
So basically:
What is the fundamental difference between these two?
Which one would be better for doing a query for data in the database that is not known at compile time but instead at runtime? (I will use
query()
orSQLiteQueryBuilder()
for this.)How would I go about setting up the right one?