Lately I ran into a small problem with AsyncTaskLoader, I thought it would help you if I share 🙂
I was using AsycTaskLoader class to implement background loading for my app. I have written the code
LoadInBackground() Method. I’ve started the loader using –
loadInBackground() method was never getting called. After searching for some time, I came across the solution-
has to be called in
onStartLoading() method of AsyncTaskLoader without which your
loadInBackground() method never gets called. I’m not sure about the reason but it works !!