Which thread(s) call `onCreateLoader()` and `onLoadFinished()`?

596 views Asked by At

I am implementing LoaderManager.LoaderCallbacks in order to access my app's database and populate a ListView. Which threads will call my onCreateLoader() and onLoadFinished()? Are they called on the UI thread or the CursorLoader's thread? The documentation for LoaderCallbacks is mute on this point.

1

There are 1 answers

4
siva On BEST ANSWER

Loader callback are called on the thread from which initloader method is called. In general it will be main thread.