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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -