1

am using this code to count the remaining tasks in db and it has show that in list view [closed]

view story
linux-howto

http://stackoverflow.com – am using this code to count the remaining tasks in db and it has show that too in list view,here is the code snippet am using, public void count(){ SQLiteOpenHelper DATABASE_TABLE_REL = null; SQLiteDatabase mDb = DATABASE_TABLE_REL.getWritableDatabase(); String count = "SELECT count(*) FROM DATABASE_TABLE_REL"; Cursor mcursor = mDb.rawQuery(count, null); mcursor.moveToFirst(); int icount = mcursor.getInt(0); System.out.println("NUMBER IN DB: " + icount); } please help me in this task,am not able to proceeding forward (HowTos)