I am using a only moderately altered version of the database code from
the Notepad examples, but it doesn't appear that the db.execSQL
(CREATE_DATABASE); is ever being called, and then upon attempting to
do a create to add to the table, I get a "no such table" error.
Code to add to the table
public void addToGames(){
GamesDataAdapter dbHelper = new GamesDataAdapter(this);
dbHelper.open();
dbHelper.createAsset(title, madeBy);
}
Then all of the adapter is unchanged except for the names changed to
be more relevant to my code, and I am fairly certain that I have
changed them in every position that they would need to be changed so I
don't believe that is my problem.
The Error looks as follows:
Error inserting value1=blah value2=blahblah
android.database.sqlite.SQLiteException: no such table: games: , while
compiling INSERT INTO games(value1,value2) VALUES(?, ?);
Any idea why I might be having trouble with creating the database and/
or the table?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---