Вопрос

Where should I process query results (time consuming task) when using CursorLoader?

Это было полезно?

Решение

Use AsyncTask to load data from cursor and return values in onPostExcute method (uiThread), when you'll call the task multiple times cancel the the former.

Другие советы

In onCreateLoader then once the result is processed, return null or cursorloader to notify that you are done doing background task and update your ui in onLoadFinished

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top