I always use this method, so far it never crash yet
Cursor c;
...
//check if there is any cursor
if (c.getCount() 0) {
//move to the first cursor
c.moveToFirst();
do {
//retrieve the cursor data here
.
} while (cur.moveToNext()); //check if next cursor is still valid
sorry, last line should be
while (c.moveToNext()); //check if next cursor is still valid
not cur.moveToNext() :p ...
On Jun 18, 10:03 am, beka id.b...@gmail.com wrote:
I always use this method, so far it never crash yet
Cursor c;
...
//check if there is any cursor
if (c.getCount() 0) {
2 matches
Mail list logo