Code example for AsyncTaskLoader

0
public class ImageFileLoader extends AsyncTaskLoader<File>{
	 
	File f = null;
	 
	public ImageFileLoader(Context context) {
		super(context);
	} 
 
	@Override 
	public File loadInBackground() {
		return null; 
	} 
	 
	@Override 
	protected void onStartLoading() { 
		if(f == null){
			forceLoad();
		} 
	} 
 
Connect your IDE to all the code out there  Get Codota for Java