Code example for AsyncTaskLoader

Methods: onStartLoading

0
        } 
	} 
	 
	@Override 
	protected void onStartLoading() { 
		super.onStartLoading(); 
		if (result) {
			deliverResult(result);
		} else { 
			forceLoad();
		} 
	} 
	 
	@Override 
	public void deliverResult(Boolean data) {
		super.deliverResult(data);
		result = data;
	} 
 
	public void locationAdded() { 
		int percent = (int)((++progressState / COUNT_OF_ALL_LOCATIONS) * 100f);