Code example for AsyncTaskLoader

Methods: onStartLoading

0
			super.deliverResult(data);
		} 
 
		@Override 
		protected void onStartLoading() { 
			super.onStartLoading(); 
 
			mAdapter.clear();
			mLoadingSpinner.setVisibility(View.VISIBLE);
			forceLoad();		
		} 
 
		@Override 
		protected void onStopLoading() { 
			super.onStopLoading(); 
			 
			// Attempt to cancel the current load task if possible. 
	        cancelLoad();
		} 
		 
Connect your IDE to all the code out there  Get Codota for Java