I was using the NotePad tutorials to get started with this, and because they hardcoded "notes" as the table name in the create statement, I was having this problem. Even after changing the table name in the create statement, I still had the problem because the database was already created.
The quick easy solution is to just bump the number of your DATABASE_VERSION (or the 4th SQLiteOpenHelper parameter). Then, as long as you have onUpgrade setup like in the NotePad tutorials, it will just drop the database and start over. -Mark On Oct 2, 7:41 am, "Mark Murphy" <[email protected]> wrote: > > But it did not call onCreate(SQLiteDatabase db) never so can some one > > tell me what can be the issue in it ? > > Here are some possibilities: > > 1. You are not using theSQLiteOpenHelperto open your database. > > 2. You already have an empty database (perhaps lazy-created by SQLite from > earlier editions of your code), and therefore Android does not think the > database needs to be created. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android App Developer Books:http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

