Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question