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