android - Java cursor giving only 50 rows -
I am using this cursor, but it is facing a problem
this Returning only 50 rows, while the database table is 500+ rows, when it comes out of the loop after the 49 V record
cursor c = db.rawQuery (select "From mytable command with id" ", Blank); Toast. Make text (this, "line count ---" + c.getCount (), toast.LnnGHIHAR). Show (); // give 500 records int ik = 0; If (c! = Null) {while (c.moveToNext ()) {ik ++; Toast. Maketext (Try this, "increment --- + +, Toast LNGHIRAR). Show (); // only 49}}
please help
There is no error in capturing but after 49V record sends a request to connect to WiFi, while I am not using any WiFi.
There is an alternative way of getting all the records. / P>
Thanks in advance
Just one thing, I guess Is:
cursor c = db.rawQuery ("select from mytable order with id", blank); toast. Make text (this, "line count ---" c.getCount (), Toast.LnnGHIHAR) Show (); // give 500 records int ik = 0; if (c.moveToFirst ()) {do {ik ++; Log.i ("cursor check", "increment - - "+ ik); // should be counted for the last time while (c.moveToNext ())}
c.moveToFirst ()
otherwise , A cursor can be in any uncomfortable place.
I also use the log to change your check Otherwise, 500 can be encouraging to be toast.
Comments
Post a Comment