How do I check if a query returns a valid cursor?
It looks like that the query method returns a not null cursor even
though there are no record in the sqllite db.
Looking at the notepad example, the fetchNote method returns the
cursor anyway, and the comment says that the method throws a
sqlexception in case no rows are found, but it's not the way my
application works.
It works correctly until I don't try to get a column value with the
getString() method.
The only way I found to check if a query result is valid is to check
the result of the moveToFirst method.
Is that correct?
Thanks in advance,
Federico
--
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
To unsubscribe, reply using "remove me" as the subject.