After deleting the data from the database, you must update the ListView to display the changes. But the Studio says that the requery() is deprecated . What function can be used together? Here they say that you need to re-call the cursor. But I did not understand how to do it.
UPD: Copied the first code and re-called the cursor with this code did not help.
cursor = mSqLiteDatabase.rawQuery("select * from "+ DatabaseHelper.DATABASE_TABLE, null);