Only 5 items.
Here is the code
sqLiteDatabase.delete("data", "name='" + cursor.getString(2)+"'",null); Log.e("asd", String.valueOf(cursor.getCount())); Why cursor.getCount() returns the number 5, when it must return the number 4. Although in the database if you look there are 4 elements.