I've noticed the following functions for AsyncTaskLoader,Loader and LoaderManager :
Thing is, I don't get how they work:
- What's the difference between them?
- Does any of them call "interrupt" on the thread of the loader? If not, is it possible ?
- How can the loader halt its operation when those functions get called?
- How can the loader cancel itself (since both functions need to run on the UI thread only) ?
- Does destroy/reset/abandon a loader also cancels it?
- Will "isLoadInBackgroundCanceled" return true even if the loader hasn't started yet?
- How can the UI thread know that a loader was cancelled? Should it use "isLoadInBackgroundCanceled" ?
- What's the typical thing to do to cancel a loader? to restart a loader? To restart a loader but with different input?