SQLiteOpenHelper-Android Confusion
-
19-12-2020 - |
質問
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
解決
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.
所属していません StackOverflow