Code example for LoaderManager

Methods: restartLoader

0
        public void onLoaderReset(Loader<SmoothListAdapter.ImageListItem> loader) {}
 
        public void startLoader() { 
            isLoaderWorking = true;
            activity.getLoaderManager().destroyLoader(LOADER_ID);
            activity.getLoaderManager().restartLoader(LOADER_ID, null, this);
        } 
    } 
 
    public static class ImageListItem { 
        public String url;
        public Bitmap img;
 
        public ImageListItem(String url, Bitmap logo) {
            this.url = url;
            this.img = logo;
        } 
    } 
 
}