On Fri, Jul 2, 2010 at 12:09 PM, Bret Foreman <bret.fore...@gmail.com> wrote: > I'm looking at this page: > > http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html > > Note that in the section about getWritableDatabase there is the > phrase: "Create and/or open a database" > > But getWritableDatabase is not calling the SQLiteOpenHelper.onCreate > method which is where the DB gets created.
Then you already have a database. > How can I cause onCreate to > be called? Delete the existing database (e.g., using DDMS's File Manager). Then call getWritableDatabase(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en