[android-beginners] Re: Problem with cursors

2010-06-17 Thread beka
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

[android-beginners] Re: Problem with cursors

2010-06-17 Thread beka
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) {