cursor.moveToFirst(); while (!cursor.isAfterLast()) { // Do something cursor.moveToNext(); } cursor.close();
Here's another one (this is one of the simplest approach):
for(cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()){ // Do something }
No comments:
Post a Comment