Code example for AsyncTaskLoader

Methods: onStartLoading

0
            mApi = builder.build();
        } 
 
        @Override 
        protected void onStartLoading() { 
            super.onStartLoading(); 
            if(mArtists != null){
                deliverResult(mArtists);
            } 
            if(mArtists == null){
                forceLoad();
            } 
        } 
 
        @Override 
        public void stopLoading() { 
            super.stopLoading(); 
            cancelLoad();
        } 
 
        @Override