I have a fragment that uses multiple CursorLoaders. All works fine. Now I need to add an AsyncTaskLoader as well, to the same fragment.
Question is, how can I use the same LoaderManager.LoaderCallbacks interface to manage both my CursorLoaders and AsyncTaskLoader?
My thought is that since CursorLoader is-a AsyncTaskLoader, then I should be able to adapt the LoaderCallBacks to both, but I may be miss the boat...
This will only work if all the loaders return the same type. If that's true, then you simply need to specify unique ID's for each loader you start. That same ID is passed into the onCreateLoader() call so you just check that ID to figure out which loader to create.