SQLiteOpenHelper-Android Confusion
-
19-12-2020 - |
Question
I have couple of question regarding to sqlite-android
When is the
onUpgrade
method called in application?Can I have two helper class in one application? if so...
then how/when I call second class
Solution
onUpgrade is called when int DATABASE_VERSION of your DBAdapter is higher than the currenly installed one.
Why would you want 2 helper classes. But yes, I suppose you could.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow