Most of your code looks very similar to mine (which works 100% ok).
The bit where you select the data is different, mine looks like:-
return db.query(true, "table_name",
cols,
KEY_ROWID + "=" + rowId,
null, null, null, null, null);
I'm not sure what the difference is between the 2 different calls to
db.query.
Also
Have you tried inserting a row when you create the table and then calling
Cursor
cursor = database.getTrUpdate("1"); as a test?
Do you get the same error?
--
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