I think it is as you described - if you left the database version
number the same, then onUpgrade() won't be called. This is what I have
experienced at least.

On Jan 5, 5:47 pm, Paul <idi...@gmail.com> wrote:
> Scenario:
> User buys my application from Android Market Place.
> I update my Application (change version_code, version_name in
> Manifest). But no change to my DATABASE_VERSION in my SQLiteOpenHelper
> sub class.
> User installs update from android market place.
>
> Question:
> Is SQLiteOpenHelper.onUpgrade() called when the user installs the
> update and starts the app?
>
> Discussion:
> I would have thought no, since my database_version did not change.
> I am also assuming that the existing database is not wiped out by the
> install process during the normal update from market place.
>
> Since there is no "sandbox" version of the market place, it is
> difficult to test these things.
>
> Please help.
-- 
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