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. what intent is used for opening mail account?

Hi all.

I just want to know what intent am I going to use to open a mail
I can open the "compose view" of the mail client but I cant find an
intent to open
the "inbox view" of the mail client.

The same thing for opening the "mail" application from android device.
For example, from my application, I want to call "mail" application.
What intent should I use for it?

Thank you in advance.


2. Interface Design Question


I'd like to get your suggestion for best option to implement the following
interface on android 2.2.

1. Folders (or folder windows displayed as pictures) are assembled or places
as a deck of cards on screen
2. when using a touch (scroll up motion) each folder windows move up (scroll
up) at a tilted angle and gradually it gets straighten in vertical direction
when reaches at the center . The other folder windows are linked as a chain
so if you scroll up again the next folder window will take the center
position and so on until the last one. This can be scroll up or down.

Apparently, it seem it can be done with GridView or Gallery Widget to start
instead working for new widget. if you have experience doing such interface
, suggest me for better option?

Thanks in advance for your suggestions



3. reading ttf fonts

4. MediaRecorder buffering

5. Android mt9p031 sensor support

6. bluetooth debug

7. Droid 2: "Cannot download to this device."