I figured it out. I was trying to insert data prior to opening the
database for writing.
On Oct 11, 11:17 am, atrus123 <[EMAIL PROTECTED]> wrote:
> What would be a good way to approach performing a bulk insert of
> values during the database creation?
>
> What I had tried doing was something like this:
>
> public void onCreate(SQLiteDatabase db) {
> // TODO Auto-generated method stub
> db.execSQL(CREATE_TABLE);
> db.execSQL(LOAD_DATA);
> }
>
> but it apparently completely ignored my LOAD_DATA, which was just a
> generic INSERT INTO statement. I also tried appending my insert
> statement to the create but with no change. I checked sqlite in the
> adb shell, and the database is present... just empty.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---