I did that part. The problem I'm running into is trying to 'simulate' an application upgrade to test if my onUpgrade method works. However, it's still not being invoked when I try reinstalling the application to a new version. Is there a way to simulate an application upgrade without having to post it onto the market?
On Jul 13, 1:46 pm, skyman <krzysiek.bieli...@gmail.com> wrote: > onUpgradeis invoked only when SQLiteOpenHelper cunstructor's version > paremeter is greater than when the database was created at first. > > In my app (pl.skyman.autobuser) I have constant field for "current" > database version and inonUpgradeI compare oldVersion and newVersion > with values from past to make step by step upgrade. > > Skyman > > On 13 Lip, 21:11, VRAQ <vyrak.bunle...@gmail.com> wrote: > > > I changed my database schema on my application to include an > > additional column in one of the tables. I did this in theonUpgrade > > method in the DBHelper. > > > Then I tried exporting my signed application and reinstalling it using > > the 'adb install -r <app>.apk' command to try and 'simulate' an > > application upgrade, butonUpgradenever gets called. > > > Is there a command that I can use to try and duplicate the behavior of > > an application upgrade? > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---