N
N
NullxWeight2015-08-13 13:16:10
Java
NullxWeight, 2015-08-13 13:16:10

Filter for Cursor or ArrayList to Cursor?

In general, I have a cursor obtained from the database. I am overriding a method that needs this cursor and would like to filter that cursor and pass on a new one. 2 options described in the title came to mind, but I myself have no idea whether this is possible at all, because the cursor, by its nature, is painfully wooden.
I will be extremely grateful if you poke your nose;)
PS Now I am working on a filter solution in a database query, but it may not work out because the data is very dynamic.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NullxWeigth, 2015-08-18
@NullxWeight

The solution was to replace the use of CursorLoader with AsynkTaskLoader. With this approach, Loader'a methods operate on ArrayList and, accordingly, it becomes possible to correct data after loading from the database and before the user appears in the list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question