Hi!

I've wondering about the behavior of the Cursor.moveToNext() method.
According to the docs:

"This method will return false if the cursor is already past the last
entry in the result set."

this method should give good support for head controlled loops like:

   final Cursor c = ....

   for ( boolean ok = c.moveToFirst(); ok && !c.isAfterLast(); )
   {
      // Do something ...
      ok = c.moveToNext();
   }

But during the move from the last entry to the position after the last
entry it returns false. I think this conflicts with the docs and
prohibits loops like above.

-- 
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