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

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

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

google shop client API returns 400 bad request error while adding an item -