In an Android application, I got a query response from the database and I created a cursor object for it (for example, a contact list).
I want to delete some rows of this database response and create a new cursor that matches the database answer but there are no extra rows.
In fact, I want to add some code like a proxy in the application, which means that it gets the query answers, Edit it and then get it to to the new cursor object. Can you guide me? What should I do?
Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, ContactsContract.Contacts.DISPLAY_NAME + " LIMIT 5");
// remove some results
Cursor newCursor= answers with new results