I\'m trying to use an AsyncTaskLoader
to load data in the background to populate a detail view in response to a list item being chosen. I\'ve gotten it mostly work
Maybe not best solution but ... This code restart loader every time, which is bad but only work around that works - if you want to used loader.
Loader l = getLoaderManager().getLoader(MY_LOADER);
if (l != null) {
getLoaderManager().restartLoader(MY_LOADER, null, this);
} else {
getLoaderManager().initLoader(MY_LOADER, null, this);
}
BTW. I am using Cursorloader ...