onUpgrade is called when u have installed using adb..
now when u load the app, the new version is already upgraded so it
will not again call the onUpgrade again..
in short this function is called when there are some changes made to
the data schema,droping tables,altering ables etc.


On Mar 12, 12:19 am, xdm40 <poiuytr...@gmail.com> wrote:
> For some reason, my onUpgrade method is not getting called when it
> should.
>
> I have incremented both the application version and the database
> version.  When I re-install the application on the emulator using:
> adb install -r app.apk
>
> It installs the newer version, but when I load the application,
> onUpgrade is not called.
>
> Any ideas?  Do I need to upgrade the app a different way instead of
> using adb install -r?
>
> 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

Reply via email to