Upgrading Database from Assets

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


Sponsored Links
 Hello,

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

If anyone has any suggestions that would be great.

Thanks,

Petar K.

-- 



Other Threads

1. capture local webpage/html doc as image thumbnail without opening the android website browser

I have some html files, where i would like to make visual preview
thumbs of, for a file browser type widget. I prefer that the thumbs be
computed locally on the android device, because the files are local,
which means using a third-party server-side web-service is not
practical.

thanks in advance for all help.
-jeremy

--~--~---------~--~----~------------~-------~--~----~

2. Shared libraries versus Service

I read that Android 1.0 does not have support for third party shared
libraries. eg : If I need to use the TTS library, every application
apk will have to include the jar file resulting in every application
bulking up and thats not acceptable.

But I also read that a way to around this is to implement it as a
Service . Can anyone shed more light on this ?

Thanks a lot.

--~--~---------~--~----~------------~-------~--~----~

3. Animating ListView through api

4. TCP Connection Problem

5. Where persist data changes ?

6. Accelerometer readings -> Screen coordinates

7. HARDWARE_TEST not granting permissions?