Android cursor cursor simplecursoradapter

I have an activity in the android list that is supported by the database cursor through SimpleCursorAdapter.

I have one limitation that needs to change cursor data. I cannot add a restriction to the request.

How should I update the cursor?

+3
source share
1 answer

You cannot manually modify the content Cursorobtained from the database query. You will need to read the data from Cursor, change it to your “constraint”, and then put the results in MatrixCursoreither ArrayListmodel objects or something like that.

+2
source

Source: https://habr.com/ru/post/1749093/


All Articles