How does AsyncTaskLoader cancel?

I noticed the following functions for AsyncTaskLoader, Loader, and LoaderManager:

The thing is, I donโ€™t understand how they work:

  • What is the difference between the two?
  • Do any of them cause an โ€œinterruptโ€ in the bootloader thread? If not, is this possible?
  • How can the bootloader stop working when these functions are called?
  • How can the loader cancel itself (since both functions should only be run in the user interface thread)?
  • Destroys / reset / failure of the bootloader also cancels it?
  • Will " isLoadInBackgroundCanceled " return true even if the bootloader is not already running?
  • How can the user interface thread know that the bootloader has been canceled? If he uses " isLoadInBackgroundCanceled "
  • What is typical for undoing the bootloader? reboot bootloader? Restart the bootloader, but with a different input?
+6
source share

All Articles