Code example for AsyncTaskLoader

0
public abstract class EsAsyncTaskLoader extends AsyncTaskLoader {
 
	private boolean mLoaderException;
 
	public EsAsyncTaskLoader(Context context) {
		super(context);
	} 
 
	public void deliverResult(Object obj) {
		if (!mLoaderException)
			super.deliverResult(obj);
	} 
 
	public abstract Object esLoadInBackground();
 
	public final Object loadInBackground() {
		if (mLoaderException) {
			return null; 
		} 
 
		try {