title: Cursor isAfterLast() returns true when reaching last row
body: <p>I wanted to iterate over a cursor over a table with 2 rows of data. My first try was:</p>
  
  <pre><code>c.moveToFirst();
  while(!c.isAfterLast()){
  //this code runs once
  c.moveToNext();
  }
  </code></pre>
  
  <p>However after debugging I noticed that I am missing the last row of my data. And that was because the while loop ends when the mPos variable becomes equal to mCount in the counter. After replacing the above code with the one below the problem was solved:</p>
  
  <pre><code>c.moveToFirst();
  do{
  //this code runs twice
  }while(c.moveToNext())
  </code></pre>
  
  <p>Essentially in the first method, the while loop runs 1 time less than the second one. Isn't isAfterLast supposed to return true only after the cursor passes the last row?</p>