Re: [android-developers] Re: Database updates

2011-05-03 Thread Albert Rosa
OK so here's what I gathered, after doing some investigation in the adb (AWESOME by the way) I noticed that there was nothing wrong with my inserts. But for some reason the second insert that is attached to INITIAL_SETUP is not run. wierd I know. but that clears up my confusion a bit. I am thi

Re: [android-developers] Re: Database updates

2011-05-03 Thread Albert Rosa
Ok so I've been able to place crazy amounts of logs every where and it does see to call onUpgrade to the next version and it is able to drop the table. I want validate the sql that its generating in order to get all the items. is there a way to get the raw sql that it's generating. I feel like

Re: [android-developers] Re: Database updates

2011-05-03 Thread Kostya Vasilyev
No idea what clearReset is, but Call SQLiteDatabase.getVersion() somewhere, just to make sure your db's version is not already 10 (which would mean that there is nothing to upgrade). -- Kostya PS - Can I use butter instead of cooking spray? :) 03.05.2011 18:09, Albert Rosa пишет: Yes I

Re: [android-developers] Re: Database updates

2011-05-03 Thread Albert Rosa
Yes I changed the VERSION number on both the dbHelper file as well as the manifest below is the code for the db helper: public class RecipeDbHelper extends SQLiteOpenHelper { private static final String DATABASE_NAME = "test"; private static final String DATABASE_TABLE = "recip

[android-developers] Re: Database updates

2011-05-03 Thread harsh chandel
can you put the code On May 3, 5:58 am, Albert Rosa wrote: > So this is my first time working with android and the sqlite db. I followed > the instructions and was able to have a db connection where i was able to > create and edit records. However i changed the schema of the db just to make > it

[android-developers] Re: Database updates

2011-05-02 Thread Chambras
where did you change the version? in the manifest file or in the java class? -- 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