I haven't tried to debug this. Most of the DB upgrades will simple enough,
which didn't need explicit debugging. But, it works. I am sure it works on
the emulator, and it should work on the device as well.

On Mon, Oct 18, 2010 at 12:02 AM, jlopeznava...@gmail.com <
jlopeznava...@gmail.com> wrote:

> Not working for me :( I am stuck.
> Thanks anyway.
>
> If I use the mobile device I can't use adb install because it says its
> installed. If I use the -r parameter with adb install it make a new
> installation from scratch so no upgrade event is fired.
> Have you ever tried to do with the device not with the emulator?
>
> On Oct 17, 8:20 pm, Kumar Bibek <coomar....@gmail.com> wrote:
> > This method will be executed whenever your try to initiate a DB
> connection.
> > Try executing a code which does some DB related task.
> >
> > On Sun, Oct 17, 2010 at 11:47 PM, jlopeznava...@gmail.com <
> >
> >
> >
> >
> >
> > jlopeznava...@gmail.com> wrote:
> > > Thanks for response.
> > > I am trying but I don't success.
> >
> > > What I do is:
> > > -Open eclipse, set a break point inside onUpgrade event
> > > -Run emulator.
> > > -In a windows prompt I type:
> > > adb emu install muPackage.apk
> >
> > > It runs, and it stop in the constructor but not in onUpgrade event,
> > > what am I missing?
> >
> > > On Oct 17, 6:53 pm, Kumar Bibek <coomar....@gmail.com> wrote:
> > > > You can do it thru adb install command
> >
> > > > On Sun, Oct 17, 2010 at 10:15 PM, jlopeznava...@gmail.com <
> >
> > > > jlopeznava...@gmail.com> wrote:
> > > > > How to install the new apk over the older version?
> >
> > > > > On Oct 17, 6:34 pm, Kumar Bibek <coomar....@gmail.com> wrote:
> > > > > > You just need to increment the database version number. Install
> the
> > > new
> > > > > apk
> > > > > > over the older version. It will be called just once.
> >
> > > > > > On Sun, Oct 17, 2010 at 10:02 PM, jlopeznava...@gmail.com <
> >
> > > > > > jlopeznava...@gmail.com> wrote:
> > > > > > > Hi, how can I emulate an onUpgrade call for my SQLiteOpenHelper
> > > class?
> > > > > > > I have tried changing the version number in my SQLiteOpenHelper
> > > class
> > > > > > > and versionCode in manifest but onUpgrade is not called.
> > > > > > > Any idea? I need to check my onUpgrade code before upload it to
> the
> > > > > > > market, I don't want my app's users get a buggy upgrade.
> >
> > > > > > > Thanks in advance.
> >
> > > > > > > --
> > > > > > > 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<android-developers%2bunsubscr...@googlegroups.com><android-developers%2Bunsubs
> cr...@googlegroups.com><android-developers%2Bunsubs
> > > cr...@googlegroups.com><android-developers%2Bunsubs
> > > > > cr...@googlegroups.com>
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > > > > --
> > > > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
> >
> > > > > --
> > > > > 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<android-developers%2bunsubscr...@googlegroups.com><android-developers%2Bunsubs
> cr...@googlegroups.com><android-developers%2Bunsubs
> > > cr...@googlegroups.com>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > > --
> > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
> >
> > > --
> > > 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<android-developers%2bunsubscr...@googlegroups.com><android-developers%2Bunsubs
> cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
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