I tried the other query method and it also fails. I added five rows into the table before querying and there are no problems with adding
On Jun 3, 12:42 pm, Edam <edamr...@hotmail.com> wrote: > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en