Upgrading Database from Assets

by Petar K. » Tue, 12 Apr 2011 10:56:48 GMT

Sponsored Links

I have an app that contains a database that is read from the assets
folder the first time the app is run. This works perfectly. My issue
is that my database has changed since the last release (i have changed
the table structure around) I put the new version of my db file in the
assets folder and changed the db version number to be one higher so
that my SQLiteOpenHelper onUpgrade method gets called (this is where I
alter the tables). Unfortunately this never happens my onUpgrade never
gets called when I change the db version number and I have no idea

If anyone has any suggestions that would be great.


Petar K.


Other Threads

1. Webkit Browser Java Plugin Support


Apologies for posting this topic if this is not the list cater for
this as I do not know which mailing list is suitable for such topic.

When I got my ADP1, tested with webkit browser which java plugin is
not supported.  I tried with Opera Mini and the result is the same.  I
heard iPhone support java plugin for their browser and it is pity to
notice that Android webkit currently do not suppor such plugin.  I
posted similar question in Android Beginners mailing list at

2. Install Failed because of Insufficient storage? I got plenty, what gives?

I tried to install my 10 MB program (which I successfully installed
yesterday) on my Dev Phone. I used the command: adb install (product

It comes back with this error:


I removed the original program from the Settings, I have PLENTY of
storage space, what gives?

How can I install this program?

3. Wifi based location

4. Detect rotation of device

5. How to deploy application on device

6. HELP! View layout issue

7. Using the Accelerometer