I think the error has something to do with selection and
selectionArgs, cause if I remove them there is no problem

On Jun 3, 1:15 pm, Hank <[email protected]> wrote:
> 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 <[email protected]> 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 [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

Reply via email to