Code example for AsyncTaskLoader

Methods: deliverResult, forceLoad

0
ArrayList<Artist> oldArtist = mArtistList;
		mArtistList = artistList;
		 
		if(isStarted()) {
			super.deliverResult(artistList);
		} 
		 
		if(oldArtist != null && oldArtist != artistList) {
			onReleaseResources(oldArtist);
		} 
	} 
	 
	protected void onReleaseResources(ArrayList<Artist> artistList) {
		// Nothing to do here for a simple List 
	} 
	 
	@Override 
	public void forceLoad() { 
		super.forceLoad(); 
	} 
	 
	@Override 
	protected void onStartLoading() { 
		if(mArtistList != null) {