Yes Mark is right,

Only if you change the databse version, the onUpgrade method will be
called.

Thanks and Regards,
Kumar Bibek.

On Jan 6, 8:16 am, Mark Wyszomierski <[email protected]> wrote:
> 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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to