You can try cursor.getCount() before cursor.moveToFirst(). >From javaDoc: public abstract int getCount () Since: API Level 1 <../../../guide/appendix/api-levels.html#level1>
Returns the numbers of rows in the cursor. Returns - the number of rows in the cursor. If getCount() is 0 that mean your cursor is empty. Hope this helps! -- 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.

