java - Cursor.moveToNext without moveToFirst -


will next code work expected?

cursor c = db.query(tablename, requestedcolumns, condition,         conditionparams, null, null, sortorder); while(c.movetonext())   {      //do stuff rows } 

the examples found far suggest calling c.movetofirst() prior looping, necessary?

yes, work, movetonext call movetofirst


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -