public void loadImage(Object data, ImageView imageView) { if (data == null) { return; } if (cancelPotentialWork(data, imageView)) { final ImageAsyncTask task = new ImageAsyncTask(this, imageView); imageView.setImageDrawable(new AsyncDrawable(mResources, mLoadingBitmap, task)); // task.execute(data); task.executeOnExecutor(AsyncTask.DUAL_THREAD_EXECUTOR, data); } }