문제

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